Skip to content

Commit 32b1d08

Browse files
committed
Add lint child process exit code forwarding
1 parent 8a13e47 commit 32b1d08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bin/gnodi-lint.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const args = process.argv.slice(2).map((arg) => {
4141
return arg;
4242
});
4343

44-
spawn(
44+
const child = spawn(
4545
'npm',
4646
[
4747
'run', 'lint', '--',
@@ -55,3 +55,7 @@ spawn(
5555
stdio: 'inherit'
5656
}
5757
);
58+
59+
child.on('close', (code) => {
60+
process.exit(code);
61+
});

0 commit comments

Comments
 (0)