Files
snatchgame/admin/package.json
josedario87 9254e41fce
Some checks failed
build-and-deploy / filter (push) Successful in 1s
build-and-deploy / build (push) Failing after 12s
build-and-deploy / deploy (push) Has been skipped
fix: Add build:prod scripts to skip type generation during Docker builds
- Client and admin builds fail in Docker due to missing ../server directory
- build:prod scripts bypass generate-types step for containerized builds
- Local development still uses full build with type generation
2025-07-05 15:04:06 -06:00

40 lines
1.1 KiB
JSON

{
"name": "snatchgame-admin",
"version": "0.0.8-alpha",
"description": "SnatchGame admin dashboard server",
"main": "server.js",
"scripts": {
"dev": "npm run generate-types && vite",
"build": "npm run generate-types && vue-tsc && vite build",
"build:prod": "vue-tsc && vite build",
"preview": "vite preview",
"serve": "PORT=3002 nodemon server.js",
"start": "NODE_ENV=production node server.js",
"generate-types": "cd ../server && npx schema-codegen src/rooms/GameRoom.ts --ts --output ../admin/src/types/",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"express",
"vue",
"admin",
"dashboard"
],
"author": "",
"license": "ISC",
"dependencies": {
"@vitejs/plugin-vue": "^6.0.0",
"@vue/tsconfig": "^0.7.0",
"colyseus.js": "^0.16.19",
"dotenv": "^16.0.0",
"express": "^4.18.0",
"typescript": "^5.8.3",
"vite": "^7.0.0",
"vue": "^3.5.17"
},
"devDependencies": {
"@types/express": "^4.17.0",
"@types/node": "^20.0.0",
"nodemon": "^3.1.10",
"vue-tsc": "^3.0.1"
}
}