feat(yarn): add yarn command with intelligent script routing#586
Open
skategui wants to merge 2 commits intortk-ai:developfrom
Open
feat(yarn): add yarn command with intelligent script routing#586skategui wants to merge 2 commits intortk-ai:developfrom
skategui wants to merge 2 commits intortk-ai:developfrom
Conversation
Add `rtk yarn` command that routes known scripts (test, build, lint, typecheck) to specialized filters and strips yarn boilerplate for generic scripts.
- Route yarn typecheck through run_via_yarn_with_filter instead of delegating to tsc_cmd::run(), so rtk gain --history shows "yarn typecheck" instead of "tsc" - Add yarn command to README.md (examples + rewrite table) - Add yarn entry to CHANGELOG.md Signed-off-by: guillaume agis <guillaume.agis@gmail.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 yarncommand with intelligent script routing to specialized filters (test, build, lint, typecheck)Changes
src/yarn_cmd.rs: New command module with script routing and filterssrc/tsc_cmd.rs: Madefilter_tsc_outputpublic for reuse by yarn typecheck routesrc/main.rs: RegisterYarnvariant in Commands enumREADME.md: Added yarn examples and rewrite table entryCHANGELOG.md: Added yarn feature entryTracking attribution
yarn typechecknow routes throughrun_via_yarn_with_filter(like test/build/lint) instead of delegating totsc_cmd::run(), sortk gain --historycorrectly shows "yarn typecheck" instead of "tsc".Test plan
cargo fmt --all --check && cargo clippy --all-targets && cargo testpassesyarn runprefix stripping, jest vs vitest detection