diff --git a/package/component/package.json b/package/component/package.json index 474a8f7c..e221e7a2 100644 --- a/package/component/package.json +++ b/package/component/package.json @@ -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", diff --git a/package/icons/package.json b/package/icons/package.json index f859ccc8..5cf8b993 100644 --- a/package/icons/package.json +++ b/package/icons/package.json @@ -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", diff --git a/package/layer/package.json b/package/layer/package.json index 3ca05de1..baffe2da 100644 --- a/package/layer/package.json +++ b/package/layer/package.json @@ -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",