Create consistent prebuild script in all packages

This commit is contained in:
Simon Warta
2020-08-13 15:09:18 +02:00
parent 54357fa75a
commit b2943816f3
14 changed files with 27 additions and 13 deletions
+2 -1
View File
@@ -39,7 +39,8 @@
"coverage": "nyc --reporter=text --reporter=lcov yarn test --quiet",
"move-types": "shx rm -r ./types/* && shx mv build/types/* ./types && rm -rf ./types/testdata && shx rm -f ./types/*.spec.d.ts",
"format-types": "prettier --write --loglevel warn \"./types/**/*.d.ts\"",
"build": "shx rm -rf ./build && tsc && yarn move-types && yarn format-types",
"prebuild": "shx rm -rf ./build",
"build": "tsc && yarn move-types && yarn format-types",
"build-or-skip": "[ -n \"$SKIP_BUILD\" ] || yarn build",
"pack-web": "yarn build-or-skip && webpack --mode development --config webpack.web.config.js"
},