Skip to content

Commit fd00b56

Browse files
committed
cross x build
1 parent 5a21390 commit fd00b56

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

exec.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import path from 'path';
2+
import {execSync} from 'child_process';
3+
4+
const runPath = path.resolve(process.argv[2]);
5+
execSync(`"${runPath}"`,{stdio:'inherit'});
6+

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"scripts": {
1212
"start": "node --max-old-space-size=4096 src/app.js",
13-
"build": "bash ./scripts/build_only.sh",
13+
"build": "node exec.js \"./scripts/build_only.sh\"",
1414
"clean": "rm package-lock.json; rm -rf node_modules; rm -rf build/*",
1515
"test": "node --watch src/app.js",
1616
"inspect": "node --inspect-brk=127.0.0.1:9999 src/app.js",

0 commit comments

Comments
 (0)