package.json
⎇
Raw
1{
2 "name": "music-server-backend",
3 "version": "1.0.0",
4 "license": "AGPL-3.0-only",
5 "scripts": {
6 "clean": "rm -rf dist node_modules ../webclient/dist ../webclient/node_modules",
7 "postinstall": "bun install --cwd ../webclient",
8 "build-watch:frontend": "cd ../webclient && bun run build -c vite.watch.config.ts --watch --emptyOutDir --outDir ../server/dist",
9 "copy-mediainfo-wasm": "cp node_modules/mediainfo.js/dist/MediaInfoModule.wasm dist/MediaInfoModule.wasm",
10 "start": "bun run copy-mediainfo-wasm && bun run --watch src/index.ts --serve dist",
11 "dev": "concurrently \"bun run build-watch:frontend\" \"sleep 1 && bun run start\"",
12 "build:frontend": "cd ../webclient && bun run build -c vite.compile.config.ts --emptyOutDir --outDir ../server/dist",
13 "compile": "bun run build:frontend && bun build src/index.ts --compile --production --outfile dist/server && bun run copy-mediainfo-wasm"
14 },
15 "devDependencies": {
16 "@types/command-exists": "^1.2.3",
17 "@types/range-parser": "^1.2.7",
18 "@types/tmp": "^0.2.6",
19 "bun-types": "latest",
20 "concurrently": "^9.1.2"
21 },
22 "dependencies": {
23 /*elysiajs bug from 1.3.0: headers get appended instead of overwritten*/
24 "elysia": "1.2.25",
25 "@elysiajs/static": "1.2.0",
26 "command-exists": "^1.2.9",
27 "file-type": "^20.0.1",
28 "mediainfo.js": "^0.3.5",
29 "music-metadata": "^11.2.0",
30 "music-server-shared": "file:../shared",
31 "range-parser": "^1.2.1",
32 "tmp": "^0.2.3"
33 },
34 "module": "src/index.js"
35}
36