build: 📦️ add "postinstall" and "prepare" scripts

This commit is contained in:
bubkoo
2021-04-10 19:33:22 +08:00
parent 1092768d62
commit cdbb5b3096
3 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,8 @@
"build": "tsc --outDir ./lib",
"build:watch": "yarn build --w",
"prebuild": "run-s clean",
"preinstall": "run-s build",
"postinstall": "run-s build",
"prepare": "run-s build",
"precommit": "lint-staged"
},
"lint-staged": {

View File

@ -16,7 +16,8 @@
"build": "tsc --outDir ./lib",
"build:watch": "yarn build --w",
"prebuild": "run-s clean",
"preinstall": "run-s build",
"postinstall": "run-s build",
"prepare": "run-s build",
"precommit": "lint-staged"
},
"lint-staged": {

View File

@ -13,7 +13,8 @@
"build": "tsc --outDir ./lib",
"build:watch": "yarn build --w",
"prebuild": "run-s clean",
"preinstall": "run-s build",
"postinstall": "run-s build",
"prepare": "run-s build",
"precommit": "lint-staged"
},
"lint-staged": {