Skip to content

Commit b9c2432

Browse files
committed
Again
1 parent bf2f8e4 commit b9c2432

File tree

6 files changed

+7
-11
lines changed

6 files changed

+7
-11
lines changed

.gitignore

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff 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/**

dist/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27603,9 +27603,11 @@ process.env.LOCALIZATION_ROOT = localizationRoot;
2760327603

2760427604
try {
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.

entrypoint.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ process.env.LOCALIZATION_ROOT = localizationRoot;
4646

4747
try {
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}`);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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
}

0 commit comments

Comments
 (0)