chore: update build scripts to use rimraf for cleaning dist directory and add rimraf as a dependency in relevant package.json files

This commit is contained in:
Mauricio Siu
2026-02-24 23:17:14 -06:00
parent b8bfee7f87
commit 234862e5b6
6 changed files with 64 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
"type": "module",
"scripts": {
"dev": "PORT=4000 tsx watch src/index.ts",
"build": "tsc --project tsconfig.json",
"build": "rimraf dist && tsc --project tsconfig.json",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit"
},
@@ -26,6 +26,7 @@
"@types/node": "^24.4.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"rimraf": "6.1.3",
"tsx": "^4.16.2",
"typescript": "^5.8.3"
},