Skip to content

Replace Lerna in pkg-script.js with npm workspace commands #2

@Streamweaver

Description

@Streamweaver

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions