File tree Expand file tree Collapse file tree 6 files changed +7
-11
lines changed
Expand file tree Collapse file tree 6 files changed +7
-11
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,3 @@ Thumbs.db
2929.vscode /
3030.idea /
3131* .swp
32-
33- # Dist directory
34- dist /
35- ! dist /index.js
36- ! dist /scripts /
37- ! dist /scripts /**
Original file line number Diff line number Diff line change @@ -27603,9 +27603,11 @@ process.env.LOCALIZATION_ROOT = localizationRoot;
2760327603
2760427604try {
2760527605 if (action === 'push') {
27606- execSync('node ./dist/scripts/push-json-to-google-sheets.js', { stdio: 'inherit' });
27606+ const scriptPath = __nccwpck_require__.ab + "push-json-to-google-sheets.js";
27607+ execSync(`node ${scriptPath}`, { stdio: 'inherit' });
2760727608 } else if (action === 'pull') {
27608- execSync('node ./dist/scripts/pull-google-sheets-to-json.js', { stdio: 'inherit' });
27609+ const scriptPath = __nccwpck_require__.ab + "pull-google-sheets-to-json.js";
27610+ execSync(`node ${scriptPath}`, { stdio: 'inherit' });
2760927611 } else {
2761027612 core.setFailed(`Unknown action: ${action}`);
2761127613 process.exit(1);
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ process.env.LOCALIZATION_ROOT = localizationRoot;
4646
4747try {
4848 if ( action === 'push' ) {
49- const scriptPath = require . resolve ( './dist/ scripts/push-json-to-google-sheets.js' ) ;
49+ const scriptPath = require . resolve ( './scripts/push-json-to-google-sheets.js' ) ;
5050 execSync ( `node ${ scriptPath } ` , { stdio : 'inherit' } ) ;
5151 } else if ( action === 'pull' ) {
52- const scriptPath = require . resolve ( './dist/ scripts/pull-google-sheets-to-json.js' ) ;
52+ const scriptPath = require . resolve ( './scripts/pull-google-sheets-to-json.js' ) ;
5353 execSync ( `node ${ scriptPath } ` , { stdio : 'inherit' } ) ;
5454 } else {
5555 core . setFailed ( `Unknown action: ${ action } ` ) ;
Original file line number Diff line number Diff line change 1414 "cpx" : " ^1.5.0"
1515 },
1616 "scripts" : {
17- "build" : " ncc build entrypoint.js -o dist && cpx 'scripts/**/*' dist/scripts " ,
17+ "build" : " ncc build entrypoint.js -o dist" ,
1818 "test" : " jest"
1919 }
2020}
You can’t perform that action at this time.
0 commit comments