Skip to content

Commit d6fe0af

Browse files
committed
feat(pnpm): handle pnpm build rewrite
1 parent 165412f commit d6fe0af

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/discover/registry.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2087,6 +2087,7 @@ mod tests {
20872087
#[test]
20882088
fn test_rewrite_pnpm_command() {
20892089
let commands = vec![
2090+
"build",
20902091
"exec",
20912092
"i",
20922093
"install",

src/discover/rules.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ pub const PATTERNS: &[&str] = &[
1616
r"^git\s+(status|log|diff|show|add|commit|push|pull|branch|fetch|stash|worktree)",
1717
r"^gh\s+(pr|issue|run|repo|api|release)",
1818
r"^cargo\s+(build|test|clippy|check|fmt|install)",
19-
r"^pnpm\s+(exec|i|install|list|ls|outdated|run|run-script)",
19+
r"^pnpm\s+(build|exec|i|install|list|ls|outdated|run|run-script)",
2020
r"^npm\s+(exec|run|run-script|rum|urn|x)\s+",
2121
r"^npx\s+",
2222
r"^(cat|head|tail)\s+",

0 commit comments

Comments
 (0)