We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
node inspect
1 parent de66c6b commit 0d9a892Copy full SHA for 0d9a892
lib/monitor/run.js
@@ -78,10 +78,13 @@ function run(options) {
78
});
79
}
80
81
+ const firstArg = cmd.args[0] || '';
82
+
83
if (
84
// this is a hack to avoid forking if there's a node argument being passed
85
// it's a short term fix, and I'm not 100% sure that `fork` is the right way
- (cmd.args[0] || '').indexOf('-') === -1 &&
86
+ firstArg.indexOf('-') === -1 &&
87
+ firstArg !== 'inspect' &&
88
executable === 'node' &&
89
utils.version.major > 4
90
) {
0 commit comments