From d5ad0dc5b712e99f57ad7aeaa8eb2801707ab400 Mon Sep 17 00:00:00 2001 From: Fabien Date: Mon, 8 Aug 2022 11:46:05 +0200 Subject: [PATCH] Fix typescript "npm run clean" You couldn't publish with the default generated package because the clean was broken I've included the shx depedency & fixed the path deleted (dist, not lib) --- templates/typescript/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/typescript/package.json b/templates/typescript/package.json index a1fbb8c..b8924f0 100644 --- a/templates/typescript/package.json +++ b/templates/typescript/package.json @@ -5,7 +5,7 @@ "author": "{{contact}}", "scripts": { "build": "tsup src/cli.ts --minify", - "clean": "shx rm -rf lib", + "clean": "shx rm -rf dist", "dev": "tsup src/cli.ts --watch", "prepublishOnly": "npm run clean && npm run build" }, @@ -16,6 +16,7 @@ ], "devDependencies": { "@types/node": "^17.0.29", + "shx": "^0.3.4", "tsup": "^5.12.1", "typescript": "^4.6.3" },