* Check if a command is a built-in/common command that isn't an npm package
(name: string)
| 66 | * Check if a command is a built-in/common command that isn't an npm package |
| 67 | */ |
| 68 | function isBuiltinCommand(name: string): boolean { |
| 69 | const builtins = new Set([ |
| 70 | // Common shell commands that might be mistakenly captured |
| 71 | 'env', |
| 72 | 'node', |
| 73 | 'npm', |
| 74 | 'yarn', |
| 75 | 'pnpm', |
| 76 | // npx flags that might look like packages |
| 77 | 'yes', |
| 78 | 'no', |
| 79 | 'quiet', |
| 80 | 'shell', |
| 81 | ]) |
| 82 | return builtins.has(name) |
| 83 | } |
| 84 | |
| 85 | /** |
| 86 | * Extract install script information from package.json scripts. |
no outgoing calls
no test coverage detected