Added a version script

It automaticly update the version number without importing package.json

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-06-22 21:40:28 +02:00
parent f858bd5c79
commit 96bc9149c9
5 changed files with 230 additions and 225 deletions

View File

@ -42,7 +42,8 @@
"unfetch": "^4.2.0"
},
"scripts": {
"build": "yarn build:cjs && yarn build:browser && yarn build:es2015",
"prebuild": "node scripts/export-version-number.js",
"build": "yarn prebuild && yarn build:cjs && yarn build:browser && yarn build:es2015",
"build:cjs": "tsc --project tsconfig.json",
"build:es2015": "tsc --project tsconfig.es2015.json",
"build:browser": "wp --config webpack.config.js",