File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -19,15 +19,17 @@ if ((!hasSourceMaps || ~posCustomArgs) && !isDeno) {
19
19
nodeArgs . push ( ...args . slice ( posCustomArgs + 1 ) ) ;
20
20
args . length = posCustomArgs ;
21
21
}
22
- ( await import ( "child_process" ) ) . spawnSync (
22
+ const { status , signal } = ( await import ( "child_process" ) ) . spawnSync (
23
23
nodePath ,
24
24
[ ...nodeArgs , thisPath , ...args ] ,
25
25
{ stdio : "inherit" }
26
26
) ;
27
+ if ( status || signal ) process . exitCode = 1 ;
27
28
} else {
28
- 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 ) , {
29
30
stdout : process . stdout ,
30
31
stderr : process . stderr
31
32
} ) ;
33
+ const { error } = await apiResult ;
32
34
if ( error ) process . exitCode = 1 ;
33
35
}
You can’t perform that action at this time.
0 commit comments