ci: 增加 postinstall 避免首次拉包后需要构建产物的问题
This commit is contained in:
parent
b9d688fd30
commit
ddfa15315b
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user