Context
Phase 2 of the TOAST UI Editor fork upgrade plan.
Task
Rewrite scripts/pkg-script.js to use npm run -w <workspace> instead of lerna run --stream --scope <package> for package-scoped script execution.
Two code paths:
test path: already uses Jest --projects directly (no Lerna) — preserve as-is
- All other paths: replace
lerna run --stream --scope <pkg> <script> with npm run -w <workspace-path> <script>
Must support all 9 packages: editor, react, vue, toastmark, chart, color, code, table, uml.
Acceptance Criteria
npm run lint -- --type editor works
npm run build -- --type editor works
npm run test -- --type editor works (Jest path unchanged)
- All 9 package types resolve correctly
- Error handling: non-zero exit code on failure
Plan: UPGRADE_PLAN.md (Phase 2)
Context
Phase 2 of the TOAST UI Editor fork upgrade plan.
Task
Rewrite
scripts/pkg-script.jsto usenpm run -w <workspace>instead oflerna run --stream --scope <package>for package-scoped script execution.Two code paths:
testpath: already uses Jest--projectsdirectly (no Lerna) — preserve as-islerna run --stream --scope <pkg> <script>withnpm run -w <workspace-path> <script>Must support all 9 packages: editor, react, vue, toastmark, chart, color, code, table, uml.
Acceptance Criteria
npm run lint -- --type editorworksnpm run build -- --type editorworksnpm run test -- --type editorworks (Jest path unchanged)Plan: UPGRADE_PLAN.md (Phase 2)