diff --git a/.gitignore b/.gitignore index 3e61d48a8..dc70778c2 100644 --- a/.gitignore +++ b/.gitignore @@ -27,4 +27,7 @@ pnpm-debug.log* /playwright-report/ /playwright/.cache/ tests-examples -*.csv \ No newline at end of file +*.csv + +/editor/* +!/editor/readonly-editor.tsx \ No newline at end of file diff --git a/package.json b/package.json index c487a765d..0b50fa472 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "roadmap-links": "node scripts/roadmap-links.cjs", "roadmap-dirs": "node scripts/roadmap-dirs.cjs", "roadmap-content": "node scripts/roadmap-content.cjs", + "generate-renderer": "sh scripts/generate-renderer.sh", "best-practice-dirs": "node scripts/best-practice-dirs.cjs", "best-practice-content": "node scripts/best-practice-content.cjs", "test:e2e": "playwright test" diff --git a/scripts/generate-renderer.sh b/scripts/generate-renderer.sh index 86921de20..e620d1526 100644 --- a/scripts/generate-renderer.sh +++ b/scripts/generate-renderer.sh @@ -29,4 +29,4 @@ done # ignore the worktree changes for the editor directory -git update-index --skip-worktree editor/* \ No newline at end of file +git update-index --no-assume-unchanged editor/readonly-editor.tsx \ No newline at end of file