Merge prod.js into index.js

This commit is contained in:
mikiher 2025-01-07 17:41:09 +02:00
parent 0eed38b771
commit d410b13c9b
5 changed files with 36 additions and 44 deletions

View file

@ -5,10 +5,10 @@
"description": "Self-hosted audiobook and podcast server",
"main": "index.js",
"scripts": {
"dev": "nodemon --watch server index.js",
"dev": "nodemon --watch server index.js -- --dev",
"start": "node index.js",
"client": "cd client && npm ci && npm run generate",
"prod": "npm run client && npm ci && node prod.js",
"prod": "npm run client && npm ci && node index.js",
"build-win": "npm run client && pkg -t node20-win-x64 -o ./dist/win/audiobookshelf -C GZip .",
"build-linux": "build/linuxpackager",
"docker": "docker buildx build --platform linux/amd64,linux/arm64 --push . -t advplyr/audiobookshelf",
@ -18,7 +18,7 @@
"test": "mocha",
"coverage": "nyc mocha"
},
"bin": "prod.js",
"bin": "index.js",
"pkg": {
"assets": [
"client/dist/**/*",
@ -26,7 +26,7 @@
"server/migrations/*.js"
],
"scripts": [
"prod.js",
"index.js",
"server/**/*.js"
]
},