File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
- import { spawnSync } from "child_process" ;
1
+ const spawn = require ( "cross-spawn" ) ;
2
2
import { resolve , basename , dirname } from "path" ;
3
3
4
4
/**
@@ -58,7 +58,9 @@ export class Builder {
58
58
basename ( this . options . output ) ,
59
59
] . filter ( Boolean ) as string [ ] ;
60
60
61
- const results = spawnSync ( this . webpackBinPath , args , { encoding : "utf-8" } ) ;
61
+ const results = spawn . sync ( this . webpackBinPath , args , {
62
+ encoding : "utf-8" ,
63
+ } ) ;
62
64
63
65
if ( results . error ) {
64
66
throw results . error ;
Original file line number Diff line number Diff line change 35
35
"@aws-cdk/assert" : " ^1.80.0" ,
36
36
"@aws-cdk/aws-lambda" : " ^1.80.0" ,
37
37
"@aws-cdk/core" : " ^1.80.0" ,
38
+ "@types/cross-spawn" : " ^6.0.2" ,
38
39
"@types/jest" : " ^26.0.19" ,
39
40
"@types/node" : " ^14.14.16" ,
41
+ "cross-spawn" : " ^7.0.3" ,
40
42
"jest" : " ^26.6.3" ,
41
43
"ts-jest" : " ^26.4.4" ,
42
44
"ts-loader" : " ^8.0.12" ,
You can’t perform that action at this time.
0 commit comments