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

@@ -3,7 +3,7 @@
"type": "module",
"scripts": {
"dev": "PORT=4001 tsx watch src/index.ts",
"build": "tsc --project tsconfig.json",
"build": "rimraf dist && tsc --project tsconfig.build.json",
"start": "node dist/index.js",
"typecheck": "tsc --noEmit"
},
@@ -23,9 +23,10 @@
"zod": "^4.3.6"
},
"devDependencies": {
"rimraf": "6.1.3",
"@types/node": "^24.4.0",
"@types/react": "^18.3.5",
"@types/react-dom": "^18.3.0",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"tsx": "^4.16.2",
"typescript": "^5.8.3"
},

View File

@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"rootDir": "./src",
"paths": {}
},
"include": ["src/**/*"]
}

View File

@@ -7,11 +7,12 @@
"skipLibCheck": true,
"outDir": "dist",
"jsx": "react-jsx",
"jsxImportSource": "hono/jsx",
"declaration": false,
"baseUrl": ".",
"paths": {
"@dokploy/server/*": ["../../packages/server/src/*"]
}
},
"exclude": ["node_modules", "dist"]
"exclude": ["node_modules", "dist"],
"include": ["src/**/*"]
}