File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,11 @@ process.env.LOCALIZATION_ROOT = localizationRoot;
46
46
47
47
try {
48
48
if ( action === 'push' ) {
49
- execSync ( 'node ./dist/scripts/push-json-to-google-sheets.js' , { stdio : 'inherit' } ) ;
49
+ const scriptPath = require . resolve ( './dist/scripts/push-json-to-google-sheets.js' ) ;
50
+ execSync ( `node ${ scriptPath } ` , { stdio : 'inherit' } ) ;
50
51
} else if ( action === 'pull' ) {
51
- execSync ( 'node ./dist/scripts/pull-google-sheets-to-json.js' , { stdio : 'inherit' } ) ;
52
+ const scriptPath = require . resolve ( './dist/scripts/pull-google-sheets-to-json.js' ) ;
53
+ execSync ( `node ${ scriptPath } ` , { stdio : 'inherit' } ) ;
52
54
} else {
53
55
core . setFailed ( `Unknown action: ${ action } ` ) ;
54
56
process . exit ( 1 ) ;
Original file line number Diff line number Diff line change 14
14
"cpx" : " ^1.5.0"
15
15
},
16
16
"scripts" : {
17
- "build" : " cpx scripts/**/* dist/scripts && ncc build entrypoint.js -o dist" ,
17
+ "build" : " ncc build entrypoint.js -o dist && cpx 'scripts/**/*' dist/scripts " ,
18
18
"test" : " jest"
19
19
}
20
20
}
You can’t perform that action at this time.
0 commit comments