Some checks failed
Test and deploy staging / staging (push) Failing after 14s
- run sv migrate sveltekit-3: config moves into vite.config.ts, $lib becomes #lib, $env/dynamic becomes $app/env/private via src/env.ts, $app/environment becomes $app/env, hook types move to @sveltejs/kit/hooks - env vars stay optional (the migrator defaulted them to ''), and BANCHO_MODE, which it missed, is declared and passed to simulatorEnabled - handleError only logs and masks unknown errors; Kit 3 now routes 404s and error(...) through it too - json()/text() become Response.json()/new Response(); goto keepFocus/noScroll becomes reset: false; invalidateAll becomes refreshAll; page.url is copied before mutating - replace adapter-node with @sveltejs/adapter-bun; prod-server.ts wraps Bun.serve to add native WebSockets (bunSockets) for /ws paths, since the generated server has no websocket option - drop the Kit readdir patch: Kit 3 sorts route entries itself - match view and broadcast pages use the live score modules BREAKING CHANGE: requires SvelteKit 3, TypeScript 6 and Bun 1.4; the build output is build/index.js from adapter-bun, started through prod-server.ts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
98 lines
3.2 KiB
JSON
98 lines
3.2 KiB
JSON
{
|
|
"name": "esports",
|
|
"private": true,
|
|
"version": "0.0.1",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "bun --bun vite dev --host 127.0.0.1 --port 3102",
|
|
"build": "bun --bun vite build",
|
|
"start": "bun ./prod-server.ts",
|
|
"preview": "bun --bun vite preview",
|
|
"prepare": "svelte-kit sync || echo '' && husky",
|
|
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
|
|
"lint": "prettier --check . && eslint .",
|
|
"format": "prettier --write .",
|
|
"test:unit": "bun --bun vitest",
|
|
"test": "bun --bun vitest --run && bun run test:e2e",
|
|
"test:e2e": "playwright test",
|
|
"test:streamer": "bun test streamer/",
|
|
"streamer": "bun streamer/agent.ts",
|
|
"broadcast:build": "bun build streamer/windows/cli.ts --compile --minify --target=bun-windows-x64 --outfile dist/vash-broadcast.exe",
|
|
"streamer:build": "bun build streamer/agent.ts --compile --minify --target=bun-windows-x64 --outfile dist/vash-streamer.exe && bun build streamer/agent.ts --compile --minify --target=bun-linux-x64 --outfile dist/vash-streamer",
|
|
"db:seed": "bun scripts/seed-dev.ts",
|
|
"db:push": "drizzle-kit push",
|
|
"db:migrate": "bun scripts/migrate.ts",
|
|
"db:migrate:dev": "bun scripts/migrate-dev.ts",
|
|
"db:studio": "drizzle-kit studio",
|
|
"auth:schema": "bun x @better-auth/cli generate --config src/lib/server/auth.ts --output src/lib/server/db/auth.schema.ts --yes"
|
|
},
|
|
"devDependencies": {
|
|
"@commitlint/cli": "^20.5.3",
|
|
"@commitlint/config-conventional": "^20.5.3",
|
|
"@eslint/compat": "^2.1.1",
|
|
"@eslint/js": "^10.0.1",
|
|
"@lucide/svelte": "^1.48.0",
|
|
"@playwright/test": "^1.63.0",
|
|
"@sentry/sveltekit": "^10.75.3",
|
|
"@sveltejs/adapter-bun": "^1.0.0",
|
|
"@sveltejs/kit": "^3.0.0",
|
|
"@sveltejs/load-config": "^0.2.2",
|
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@tailwindcss/vite": "^4.3.3",
|
|
"@types/bun": "^1.4.2",
|
|
"@types/canvas-confetti": "^1.9.0",
|
|
"@types/node": "^25.9.8",
|
|
"better-auth": "~1.5.6",
|
|
"bits-ui": "^2.19.3",
|
|
"canvas-confetti": "^1.9.4",
|
|
"clsx": "^2.1.1",
|
|
"drizzle-kit": "^0.31.11",
|
|
"drizzle-orm": "^0.45.3",
|
|
"eslint": "^10.11.0",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-svelte": "^3.23.0",
|
|
"globals": "^17.12.0",
|
|
"hls.js": "^1.7.3",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.4.0",
|
|
"pino": "^10.3.1",
|
|
"pino-pretty": "^13.1.3",
|
|
"prettier": "^3.9.9",
|
|
"prettier-plugin-svelte": "^3.5.2",
|
|
"prettier-plugin-tailwindcss": "^0.7.4",
|
|
"shadcn-svelte": "^1.7.0",
|
|
"svelte": "^5.57.1",
|
|
"svelte-check": "^4.7.6",
|
|
"svelte-sonner": "^1.2.1",
|
|
"tailwind-merge": "^3.7.0",
|
|
"tailwind-variants": "^3.3.1",
|
|
"tailwindcss": "^4.3.3",
|
|
"tw-animate-css": "^1.4.0",
|
|
"typescript": "^6.0.0",
|
|
"typescript-eslint": "^8.70.1",
|
|
"vite": "^8.3.1",
|
|
"vite-plugin-devtools-json": "^1.1.0",
|
|
"vitest": "^4.1.11"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,ts,svelte}": [
|
|
"prettier --write",
|
|
"eslint --fix"
|
|
],
|
|
"*.{json,css,md,yml,yaml,html}": [
|
|
"prettier --write"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"@bbob/parser": "^4.4.1",
|
|
"discord.js": "^14.27.0",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"imports": {
|
|
"#lib": "./src/lib/index.js",
|
|
"#lib/*": "./src/lib/*"
|
|
}
|
|
}
|