We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b9e451 commit fa07e37Copy full SHA for fa07e37
lib/common/services/hooks-service.ts
@@ -188,7 +188,11 @@ export class HooksService implements IHooksService {
188
let inProc = false;
189
if (!command) {
190
command = hook.fullPath;
191
- if ([".mjs", ".js"].includes(path.extname(hook.fullPath).toLowerCase())) {
+ if (
192
+ [".mjs", ".cjs", ".js"].includes(
193
+ path.extname(hook.fullPath).toLowerCase(),
194
+ )
195
+ ) {
196
command = process.argv[0];
197
inProc = isESM
198
? true
0 commit comments