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" },