From 94e00d443ff7204bd627127a4c5a6c1cdc1064a7 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Sat, 27 Nov 2021 14:51:05 +0800 Subject: [PATCH] chore: remove lib dir before build --- packages/create-vant-cli-app/package.json | 2 +- packages/vant-area-data/package.json | 2 +- packages/vant-cli/package.json | 2 +- packages/vant-markdown-vetur/package.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/create-vant-cli-app/package.json b/packages/create-vant-cli-app/package.json index 40aafd7c7..fcd0b643a 100644 --- a/packages/create-vant-cli-app/package.json +++ b/packages/create-vant-cli-app/package.json @@ -8,7 +8,7 @@ }, "scripts": { "dev": "tsc --watch", - "build": "tsc", + "build": "rimraf ./lib && tsc", "release": "pnpm build & release-it", "prepare": "pnpm build" }, diff --git a/packages/vant-area-data/package.json b/packages/vant-area-data/package.json index 34920953f..84d0e0efd 100644 --- a/packages/vant-area-data/package.json +++ b/packages/vant-area-data/package.json @@ -9,7 +9,7 @@ "registry": "https://registry.npmjs.org/" }, "scripts": { - "build": "tsc", + "build": "rimraf ./lib && tsc", "release": "pnpm build && npm publish", "prepare": "pnpm build" }, diff --git a/packages/vant-cli/package.json b/packages/vant-cli/package.json index cde449a9e..1013ec7e9 100644 --- a/packages/vant-cli/package.json +++ b/packages/vant-cli/package.json @@ -16,7 +16,7 @@ }, "scripts": { "dev": "tsc --watch", - "build": "tsc", + "build": "rimraf ./lib && tsc", "release": "pnpm build & release-it", "prepare": "pnpm build" }, diff --git a/packages/vant-markdown-vetur/package.json b/packages/vant-markdown-vetur/package.json index 2e49c59f0..f0f0b7f1d 100644 --- a/packages/vant-markdown-vetur/package.json +++ b/packages/vant-markdown-vetur/package.json @@ -15,7 +15,7 @@ ], "scripts": { "dev": "tsc --watch", - "build": "tsc", + "build": "rimraf ./lib && tsc", "release": "pnpm build && npm publish", "prepare": "pnpm build" },