SDServer/package.json
2024-08-30 15:54:25 +08:00

66 lines
1.4 KiB
JSON

{
"name": "sdserver",
"version": "1.0.0",
"main": "dist/electron/main.js",
"scripts": {
"start": "cross-env NODE_ENV=dev electron .",
"build": "cross-env NODE_ENV=prod tsc && npm run copyfiles",
"copyfiles": "copyfiles -u 1 src/electron/index.html dist/ && copyfiles -u 1 src/electron/index.css dist/ && copyfiles -u 1 shared/jsons/* dist/shared",
"buildexe": "npm run build && electron-builder",
"watch": "nodemon"
},
"build": {
"appId": "SDServer",
"productName": "SDServer",
"files": [
"dist/**/*",
"node_modules/**/*",
"package.json",
".env.prod"
],
"directories": {
"output": "release"
},
"extraFiles": [
{
"from": "shared",
"to": "resources/shared"
}
]
},
"dependencies": {
"dayjs": "^1.11.13",
"dotenv": "^16.4.5",
"module-alias": "^2.2.3",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/node": "^22.5.0",
"@types/ws": "^8.5.12",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"electron": "^32.0.1",
"electron-builder": "^24.7.0",
"electron-packager": "^17.1.2",
"nodemon": "^3.1.4",
"ts-node": "^10.9.2",
"tsrpc-cli": "^2.4.5",
"typescript": "^5.5.4"
},
"_moduleAliases": {
"@": "dist"
},
"bin": "dist/server.js",
"pkg": {
"assets": [
"public/**/*"
],
"outputPath": "executables",
"targets": [
"node18-win-x64"
]
},
"author": "",
"license": "ISC",
"description": ""
}