Try to run npm run build on post install

This commit is contained in:
Kuba Orlik 2023-12-10 16:30:45 +01:00
parent f6e00d120a
commit 43f7871267

View File

@ -8,6 +8,7 @@
"build": "npm run build-node && npm run build-browser",
"build-node": "tsc",
"build-browser": "esbuild src/browser.ts --bundle --minify --sourcemap --target=firefox120 --outfile=public/bundle.js",
"postinstall": "npm run build",
"clean-coverage": "rm -rf coverage .nyc_output .xunit",
"coverage": "npm run clean-coverage && nyc mocha",
"test-reports": "npm run clean-coverage && nyc --reporter clover mocha --reporter xunit --reporter-option output=.xunit",