File tree 1 file changed +11
-11
lines changed
1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -31,23 +31,23 @@ interface ConfigType {
31
31
} ;
32
32
33
33
const npmConfig : ConfigType = {
34
- installCmd : ' install' ,
35
- dependency : ' --save' ,
36
- devDependency : ' --save-dev' ,
37
- optionalDependency : ' --save-optional'
34
+ installCmd : " install" ,
35
+ dependency : " --save" ,
36
+ devDependency : " --save-dev" ,
37
+ optionalDependency : " --save-optional"
38
38
} ;
39
39
40
40
const yarnConfig : ConfigType = {
41
- installCmd : ' add' ,
42
- dependency : ' ' ,
43
- devDependency : ' --save' ,
44
- optionalDependency : '--optinal'
41
+ installCmd : " add" ,
42
+ dependency : " " ,
43
+ devDependency : " --save" ,
44
+ optionalDependency : "--optional"
45
45
} ;
46
46
47
47
const spawnWithArg = ( pm : string , cmd : string ) : SpawnSyncReturns < Buffer > => {
48
- const pmConfig : ConfigType = pm === ' npm' ? npmConfig : yarnConfig ;
49
- const options : string [ ] = [ pmConfig [ ' installCmd' ] , "webpack-dev-server" , pmConfig [ cmd ] ] ;
50
- spawn . sync ( pm , options ) ;
48
+ const pmConfig : ConfigType = pm === " npm" ? npmConfig : yarnConfig ;
49
+ const options : string [ ] = [ pmConfig . installCmd , "webpack-dev-server" , pmConfig [ cmd ] ] ;
50
+ return spawn . sync ( pm , options , { stdio : "inherit" } ) ;
51
51
} ;
52
52
53
53
/**
You can’t perform that action at this time.
0 commit comments