From 83d349bcb449bb3630ac1c5a0548bec0681436dd Mon Sep 17 00:00:00 2001 From: ocavue Date: Thu, 14 Dec 2023 23:52:57 +0800 Subject: [PATCH] Clean dist before build (#13) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 15a62a4..89054ad 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ ], "scripts": { "test": "TZ=UTC vitest", - "build": "tsc --build tsconfig.build.json", + "build": "mkdir -p dist && rm -rf dist && tsc --build tsconfig.build.json", "prepack": "yarn build", "lint": "eslint src/**/*.ts", "size": "size-limit",