From 1ea099ff98be2c4330d1fb7f0b73e53b751330d3 Mon Sep 17 00:00:00 2001 From: Alix von Schirp Date: Sun, 31 Aug 2025 14:29:21 +0200 Subject: [PATCH] chore(package.json): script cleanup and addition of preRelease script --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9e933ce..aef4cd1 100644 --- a/package.json +++ b/package.json @@ -60,11 +60,13 @@ "scripts": { "build": "tsc", "build:watch": "tsc --watch", - "check": "pnpm lint && pnpm typecheck", + "check": "pnpm run lint && pnpm run typecheck", + "clean": "shx rm -rf dist/", "docs:generate": "typedoc", "format:check": "prettier --check .", "lint": "eslint --cache .", "prepare": "husky", + "prepublishOnly": "pnpm run clean && pnpm run build", "test": "jest", "typecheck": "tsc --noEmit" },