Clean dist when building
This commit is contained in:
+3
-1
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user