ci: 增加 postinstall 避免首次拉包后需要构建产物的问题

This commit is contained in:
就眠儀式 2022-04-07 01:03:12 +08:00
parent b9d688fd30
commit ddfa15315b
3 changed files with 6 additions and 3 deletions

View File

@ -27,7 +27,8 @@
"build:es": "vite build --emptyOutDir --config ./script/build.es.ts",
"build:all": "vite build --emptyOutDir --config ./script/build.all.ts",
"build:umd": "vite build --emptyOutDir --config ./script/build.umd.ts",
"build:types": "rimraf types && tsc -d"
"build:types": "rimraf types && tsc -d",
"postinstall": "npm run build"
},
"dependencies": {
"@vueuse/core": "^7.6.2",

View File

@ -15,9 +15,10 @@
"types": "types/index.d.ts",
"style": "lib/index.css",
"scripts": {
"generate": "node ./scripts/generate.ts",
"build": "vite build --emptyOutDir && npm run build:types",
"build:types": "rimraf types && tsc -d",
"generate": "node ./scripts/generate.ts"
"postinstall": "npm run build"
},
"keywords": [
"layui-icon",

View File

@ -16,7 +16,8 @@
"style": "lib/index.css",
"scripts": {
"build": "vite build --emptyOutDir && npm run build:types",
"build:types": "rimraf types && tsc -d"
"build:types": "rimraf types && tsc -d",
"postinstall": "npm run build"
},
"keywords": [
"layui-vue",