From 259c2bcf8d6080165d6d227a5e13b8bb815d9291 Mon Sep 17 00:00:00 2001 From: CBW2007 <2337118038@qq.com> Date: Sat, 22 Jan 2022 13:22:08 +0800 Subject: [PATCH] chore(package): delete dist folder before building --- package-lock.json | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index c1b8aa7..d43349c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5,6 +5,7 @@ "requires": true, "packages": { "": { + "name": "sitemap-manager", "version": "2.1.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index b1aeb32..c265cb3 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "An easy way to create sitemaps!", "main": "dist/index.js", "scripts": { - "build": "tsc", + "build": "rm -rf dist && tsc", "prepare": "npm run build", "pretest": "npm run build", "watch": "tsc --watch",