We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4f1ed7d commit 362bc78Copy full SHA for 362bc78
src/analyzer.ts
@@ -132,7 +132,10 @@ function isValidWireitScriptCommand(command: string): boolean {
132
// do not automatically add all parent directory `node_modules/.bin`
133
// folders to PATH.
134
/^(\.\.\/)+node_modules\/\.bin\/wireit$/.test(command) ||
135
- (IS_WINDOWS && /^(\.\.\\)+node_modules\\\.bin\\wireit\.cmd$/.test(command))
+ (IS_WINDOWS && /^(\.\.\\)+node_modules\\\.bin\\wireit\.cmd$/.test(command)) ||
136
+ // This form is useful in preinstall scripts where wireit has not yet been
137
+ // installed and cannot be invoked directly.
138
+ /^(npx|pnpx|pnpm dlx|bunx|dx) wireit$/.test(command)
139
);
140
}
141
0 commit comments