Repository navigation
fix: expand npm rewrite rule to route install, ci, test, and other subcommands - #1204
MehmetGoekce wants to merge 1 commit into
Conversation
|
Hey! Thanks for the fix. We've moved to a You can do it via the PR UI (Edit → change base branch) or with: gh pr edit --base developSee CONTRIBUTING.md for the workflow. |
712d3e0 to
b4119a1
Compare
|
Thanks for the heads-up! Retargeted to |
b4119a1 to
cd902f6
Compare
|
Rebased onto The npm rule now merges both pattern sets and preserves the fix for #1148: Two notes on the resolution:
All 1454 tests pass locally, including the 5 new ones for #1148. Diff against |
cd902f6 to
e0c0666
Compare
|
Rebased onto current Two upstream commits touched the same area:
Final diff is unchanged in shape: 2 files ( |
|
Friendly ping 🙂 — this PR picked up a fresh conflict in Before I force-push: is this in the review queue for an upcoming version branch? Happy to keep it current — I'd just like to avoid another stale-rebase cycle before it can be looked at. |
|
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. |
e0c0666 to
3ba887a
Compare
…bcommands The npm rule only matched `run|exec`, so `npm install`, `npm ci`, `npm test` etc. bypassed RTK entirely. The filter in npm_cmd.rs already handles all subcommands — this fix routes them there. Adds: install, i, ci, uninstall, remove, update, list, ls, outdated, audit, test, t, start — matching pnpm parity and NPM_SUBCOMMANDS. Fixes rtk-ai#1148
3ba887a to
c8fd21c
Compare
|
Still relevant — rebased onto current `develop` (868 commits since the last update) and pushed a fresh, conflict-free diff. Tests: 3542 passed / 0 failed / 8 ignored, `cargo fmt --check` clean. Diff shape unchanged: 2 files (`rules.rs` + `registry.rs`), +43/-1. Note on the linked issue: #1148 was closed as a duplicate of #3671, which describes the same gap (bare `npm install`/`ci`/`test`/`audit` still fall through to the narrow `exec|run|run-script|rum|urn|x` pattern on current `develop`) — this PR still fixes it. |
Summary
Fixes #1148
rules.rsonly matchedrun|exec, sonpm install,npm ci,npm testetc. bypassed RTK entirelynpm_cmd.rsalready handles all subcommands — this fix routes them thereinstall,i,ci,uninstall,remove,update,list,ls,outdated,audit,test,t,startlist|ls|outdated|install)Intentionally NOT included
whoami,ping,version,prefix,root,bin— one-line output, no meaningful savingslogin,logout,adduser,init,create— interactive commandshelp— should never be filteredTest plan
registry.rs(install, install+package, ci, test, run regression)rtk rewrite "npm install"→rtk npm install(exit 0)rtk rewrite "npm run build"still worksrtk rewrite "npm whoami"→ exit 1 (correctly unmatched)