File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2626 "scripts" : {
2727 "lint" : " xo" ,
2828 "pretest" : " rm -rf .nyc_output" ,
29- "test" : " npm --node run test:node && npm --electron run test:electron && npm run test:browser" ,
29+ "test" : " npm --env= node run test:node && npm --env= electron run test:electron && npm run test:browser" ,
3030 "test:browser" : " karma start --single-run" ,
3131 "test:node" : " nyc --no-clean mocha --exit" ,
3232 "test:electron" : " nyc --no-clean mocha --exit" ,
Original file line number Diff line number Diff line change 22
33/** pre-load conditions */
44let env = 'browser' ;
5- if ( process . env . npm_config_electron ) {
5+ if ( process . env . npm_config_env === 'electron' ) {
66 // Force Electron mode
77 process . type = 'renderer' ;
88 env = 'Electron' ;
9- } else if ( process . env . npm_config_node ) {
9+ } else if ( process . env . npm_config_env === 'node' ) {
1010 env = 'node' ;
1111}
1212env = ' (' + env + ')' ;
You can’t perform that action at this time.
0 commit comments