feat(pnpm): add rtk pnpm [run] <script> with smart filter routing#232
Open
denneulin wants to merge 1 commit intortk-ai:masterfrom
Open
feat(pnpm): add rtk pnpm [run] <script> with smart filter routing#232denneulin wants to merge 1 commit intortk-ai:masterfrom
rtk pnpm [run] <script> with smart filter routing#232denneulin wants to merge 1 commit intortk-ai:masterfrom
Conversation
Route pnpm scripts to specialized filters (vitest, tsc, eslint, prettier, playwright) via static name matching and package.json auto-detection. Supports both `rtk pnpm run test` and `rtk pnpm test` shorthand. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rtk pnpm run <script>andrtk pnpm <script>shorthand with smart routing to specialized filterspackage.json auto-detection for custom scripts (e.g.,
test:e2e→ detectsplaywright test→PlaywrightParser)
filter_tsc_output,filter_generic_lint,extract_test_summarytopub(crate)for cross-modulereuse
Token Savings
pnpm [run] test(vitest)pnpm [run] typecheck(tsc)pnpm [run] lint(eslint)pnpm [run] prettier --checkpnpm [run] test:e2e(playwright)pnpm [run] build(unrouted)How It Works
rtk pnpm run test→PnpmCommands::Run→run_script("test")→ boilerplate strip → TestRunner filterrtk pnpm test→PnpmCommands::Other→is_pnpm_script("test")→run_script("test")rtk pnpm test:e2e→ readspackage.json→ detectsplaywright test→ PlaywrightParserrtk pnpm store prune→is_pnpm_script("store")= false → passthroughTest plan
apply_filter labels, integration, is_pnpm_script)
cargo fmt --all && cargo clippy --all-targets && cargo test --all— 437 tests passrtk pnpm run test,rtk pnpm test,rtk pnpm run lint