-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
28 lines (28 loc) · 1.03 KB
/
Copy pathpackage.json
File metadata and controls
28 lines (28 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{
"name": "capi",
"version": "0.1.0",
"private": true,
"type": "module",
"scripts": {
"dev": "concurrently \"npm:dev:web\" \"npm:dev:api\"",
"dev:web": "vite --host 0.0.0.0",
"dev:api": "go run ./cmd/capi",
"clean:dist": "node -e \"const fs=require('node:fs');fs.rmSync('dist',{recursive:true,force:true,maxRetries:10,retryDelay:200});if(fs.existsSync('dist')){console.error('clean:dist failed: dist/ still exists - a running process (e.g. the API server) is holding files. Stop it and rebuild, or the old bundles stay behind and get served.');process.exit(1)}\"",
"build": "npm run clean:dist && tsc -b && vite build",
"preview": "vite preview --host 0.0.0.0",
"start": "go run ./cmd/capi"
},
"dependencies": {
"@vitejs/plugin-react": "^5.1.1",
"concurrently": "^9.2.1",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"typescript": "^5.9.3",
"vite": "^7.3.0"
},
"devDependencies": {
"@types/node": "^24.10.2",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3"
}
}