mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-26 10:48:53 -05:00
Remove build on postinstall (#11244)
- Errors in the node build script will no longer cause a false perception
that dependencies cannot be installed.
- Simplifies 1cea3f39cb
This commit is contained in:
parent
0b6c1dbeec
commit
7d8f01f849
2
build
2
build
|
|
@ -48,7 +48,5 @@ try {
|
||||||
// for some reason, esbuild won't be requirable until a tick has passed
|
// for some reason, esbuild won't be requirable until a tick has passed
|
||||||
// see https://stackoverflow.com/questions/53270058/node-cant-find-certain-modules-after-synchronous-install
|
// see https://stackoverflow.com/questions/53270058/node-cant-find-certain-modules-after-synchronous-install
|
||||||
setImmediate(() => {
|
setImmediate(() => {
|
||||||
// npm package, don't rebuild
|
|
||||||
if (process.argv[2] === 'postinstall' && fs.existsSync('dist')) return;
|
|
||||||
require('./tools/build-utils').transpile(force, decl);
|
require('./tools/build-utils').transpile(force, decl);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -46,8 +46,7 @@
|
||||||
"test": "mocha",
|
"test": "mocha",
|
||||||
"posttest": "npm run tsc",
|
"posttest": "npm run tsc",
|
||||||
"full-test": "eslint --max-warnings 0 && npm run tsc && mocha --timeout 8000 --forbid-only -g \".*\" && npm run test-npm",
|
"full-test": "eslint --max-warnings 0 && npm run tsc && mocha --timeout 8000 --forbid-only -g \".*\" && npm run test-npm",
|
||||||
"full-test-ci": "eslint --max-warnings 0 && tsc && (([ \"$SKIPSIMTESTS\" = true ] && mocha --timeout 8000 --forbid-only -g \".*\" --exclude \"test/{sim,random-battles}/**\") || mocha --timeout 8000 --forbid-only -g \".*\") && npm run test-npm",
|
"full-test-ci": "eslint --max-warnings 0 && tsc && (([ \"$SKIPSIMTESTS\" = true ] && mocha --timeout 8000 --forbid-only -g \".*\" --exclude \"test/{sim,random-battles}/**\") || mocha --timeout 8000 --forbid-only -g \".*\") && npm run test-npm"
|
||||||
"postinstall": "npm run build postinstall"
|
|
||||||
},
|
},
|
||||||
"bin": "./pokemon-showdown",
|
"bin": "./pokemon-showdown",
|
||||||
"homepage": "http://pokemonshowdown.com",
|
"homepage": "http://pokemonshowdown.com",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user