cross x build

This commit is contained in:
Cris Stringfellow 2024-08-29 21:28:14 +08:00
parent 5a21390717
commit fd00b56f12
No known key found for this signature in database
2 changed files with 7 additions and 1 deletions

6
exec.js Normal file
View File

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

View File

@ -10,7 +10,7 @@
},
"scripts": {
"start": "node --max-old-space-size=4096 src/app.js",
"build": "bash ./scripts/build_only.sh",
"build": "node exec.js \"./scripts/build_only.sh\"",
"clean": "rm package-lock.json; rm -rf node_modules; rm -rf build/*",
"test": "node --watch src/app.js",
"inspect": "node --inspect-brk=127.0.0.1:9999 src/app.js",