Files
bworld/deno.json
T
2026-09-26 13:25:34 -03:00

42 lines
1.8 KiB
JSON

{
"tasks": {
"build": "deno run -A build.ts",
"serve:client": "deno run --allow-net --allow-read jsr:@std/http/file-server build",
"server": "deno run --unstable-worker-options --allow-net --allow-read --allow-write --allow-env server/main.ts",
"new-mod": "deno run --allow-read --allow-write tools/new_mod.ts",
"check-mods": "deno run --allow-read --allow-run tools/check_mods.ts",
"test": "deno test --allow-read --allow-write --allow-run tests/",
"desktop": "deno run -A build.ts --once && deno desktop --allow-read --allow-write --allow-net --allow-env=BWORLD_SERVER,HOME,USERPROFILE,APPDATA,XDG_DATA_HOME --include build --include server_mods --include server/game/worker.ts --include desktop/config.json desktop/main.ts && deno run --allow-read --allow-write desktop/linux_launcher.ts dist/bworld"
},
"compilerOptions": {
"lib": ["dom", "dom.asynciterable", "dom.iterable", "deno.ns", "deno.unstable", "deno.webgpu"]
},
"unstable": ["bundle", "raw-imports", "worker-options"],
"fmt": {
"useTabs": true,
"indentWidth": 4,
"lineWidth": 120,
"newLineKind": "lf",
"exclude": ["desktop/*.md"]
},
"imports": {
"$/": "./",
"bworld/server": "./common/mod_api/server.ts",
"bworld/client": "./common/mod_api/client.ts",
"bworld/worldgen": "./common/mod_api/worldgen.ts",
"@gfx/canvas-wasm": "jsr:@gfx/canvas-wasm@^0.4.2",
"@paulaboks/rng": "jsr:@paulaboks/rng@^0.0.3",
"@std/assert": "jsr:@std/assert@^1.0.0",
"@std/fs": "jsr:@std/fs@^1.0.23",
"@std/http": "jsr:@std/http@^1.0.23",
"@std/path": "jsr:@std/path@^1.0.0",
"gl-matrix": "npm:gl-matrix@^3.4.4",
"marked": "npm:marked@^17.0.3"
},
"desktop": {
"app": { "name": "bworld", "identifier": "com.bworld.game" },
"backend": "cef",
"output": { "macos": "./dist/bworld.app", "windows": "./dist/bworld", "linux": "./dist/bworld" }
}
}