We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f5a62b commit 9987e63Copy full SHA for 9987e63
bin/asc.js
@@ -19,15 +19,17 @@ if ((!hasSourceMaps || ~posCustomArgs) && !isDeno) {
19
nodeArgs.push(...args.slice(posCustomArgs + 1));
20
args.length = posCustomArgs;
21
}
22
- (await import("child_process")).spawnSync(
+ const { status, signal } = (await import("child_process")).spawnSync(
23
nodePath,
24
[...nodeArgs, thisPath, ...args],
25
{ stdio: "inherit" }
26
);
27
+ if (status || signal) process.exitCode = 1;
28
} else {
- const { error } = (await import("../dist/asc.js")).main(process.argv.slice(2), {
29
+ const apiResult = (await import("../dist/asc.js")).main(process.argv.slice(2), {
30
stdout: process.stdout,
31
stderr: process.stderr
32
});
33
+ const { error } = await apiResult;
34
if (error) process.exitCode = 1;
35
0 commit comments