Clean dist when building

This commit is contained in:
Tarrgon
2025-06-02 08:53:04 -04:00
parent d9a26c44e8
commit d40dac9a96
2 changed files with 173 additions and 21 deletions
+3 -1
View File
@@ -5,6 +5,7 @@
"@types/express": "^5.0.2",
"@types/express-session": "^1.18.1",
"eslint": "^9.27.0",
"rimraf": "^6.0.1",
"source-map-support": "^0.5.21",
"tsup": "^8.5.0",
"tsx": "^4.19.4",
@@ -25,7 +26,8 @@
"scripts": {
"dev": "tsx watch src/index.ts",
"start": "node dist/index.js",
"build": "npx tsc && npm run copyfiles",
"build": "npm run clean && npx tsc && npm run copyfiles",
"clean": "npx rimraf dist",
"copyfiles": "npx copyfiles -u 1 \"./src/**/*.html\" ./dist"
}
}