From ddfa15315b80dd2a51597da686a323d9b46cc996 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E5=84=80=E5=BC=8F?= <854085467@qq.com> Date: Thu, 7 Apr 2022 01:03:12 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E5=A2=9E=E5=8A=A0=20postinstall=20?= =?UTF-8?q?=E9=81=BF=E5=85=8D=E9=A6=96=E6=AC=A1=E6=8B=89=E5=8C=85=E5=90=8E?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E6=9E=84=E5=BB=BA=E4=BA=A7=E7=89=A9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/package.json | 3 ++- package/icons/package.json | 3 ++- package/layer/package.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) 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",