diff --git a/build b/build index 629bf1d126..9ed148e12b 100755 --- a/build +++ b/build @@ -48,7 +48,5 @@ try { // 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 setImmediate(() => { - // npm package, don't rebuild - if (process.argv[2] === 'postinstall' && fs.existsSync('dist')) return; require('./tools/build-utils').transpile(force, decl); }); diff --git a/package.json b/package.json index 8b0b85221f..2ba0a7ad66 100644 --- a/package.json +++ b/package.json @@ -46,8 +46,7 @@ "test": "mocha", "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-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" + "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" }, "bin": "./pokemon-showdown", "homepage": "http://pokemonshowdown.com",