Skip to content

fix(rewrite): preserve npm workspace run semantics - #2576

Closed
YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2098-npm-workspace-rewrite
Closed

YOMXXX wants to merge 1 commit into
rtk-ai:developfrom
YOMXXX:fix/issue-2098-npm-workspace-rewrite

Conversation

@YOMXXX

@YOMXXX YOMXXX commented Jun 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • route npm run / npm run-script commands with workspace selectors through rtk npm instead of collapsing them to tool-specific wrappers
  • detect -w, -w=, --workspace, --workspace=, --workspaces, and -ws before the npm -- script-args boundary
  • keep ordinary specialized rewrites, including npm run tsc --noEmit and script args after --

Fixes #2098.

Tests

  • cargo +1.93.0 fmt --check
  • git diff --check
  • cargo +1.93.0 test registry -- --nocapture (295 passed)
  • CLI smokes for workspace and non-workspace npm rewrites
  • cargo +1.93.0 clippy --all-targets
  • cargo +1.93.0 test --all -- --skip small_grep_not_worse_than_plain (2236 passed, 8 ignored; grep integration 12 + 4 passed)

@rtk-release-bot

Copy link
Copy Markdown
Contributor

This pull request has been automatically marked as stale due to 90 days of inactivity. If this pull request is still relevant, please leave any comment (for example, "bump"), and we'll keep it open. Your contribution is very much appreciated — we're sorry we haven't been able to review it yet.

@rtk-release-bot

Copy link
Copy Markdown
Contributor

Closing this pull request after a prolonged period of inactivity. If this is still relevant, please ask for it to be reopened. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hook rewrites npm run <script> -w <workspace>, breaking npm's --workspace flag

1 participant