- Gateway + backend + frontend: pnpm/vitest fully removed → bun 1.3.14 (bun install, bun test tests/, bunfig.toml [test] preload, bun.lock). - vitest configs deleted; vitest→bun facade (jest/mock/spyOn/waitForCompat) keeps the vitest-style assertions working under bun:test. - flake.nix: bunInstall switch; pruned prod-pass now removes post-pnpm dev-toolchain trees; frontend builds Next standalone via bun's next. - CI: deploy.yml installs with bun + runs bun test tests/ per service. - 190 tests green (146 gateway + 37 backend pass, 14 skip), 0 fail; tsc + biome across all 3 services clean. Co-authored-by: git-migration[bot] <noreply@gmw.local>
47 lines
1.2 KiB
JSON
47 lines
1.2 KiB
JSON
{
|
|
"name": "discord-moderation-backend",
|
|
"version": "1.0.0",
|
|
"description": "Backend service for Discord moderation monitoring",
|
|
"private": true,
|
|
"type": "module",
|
|
"main": "dist/index.js",
|
|
"packageManager": "bun@1.3.14",
|
|
"engines": {
|
|
"node": ">=22.12.0",
|
|
"pnpm": ">=9.0.0"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsx watch src/index.ts",
|
|
"format": "biome format --write .",
|
|
"lint": "biome check --diagnostic-level=error .",
|
|
"start": "node dist/index.js",
|
|
"test": "bun test tests/",
|
|
"typecheck": "tsc --noEmit",
|
|
"test:e2e": "bun test src/e2e.test.ts"
|
|
},
|
|
"dependencies": {
|
|
"@orpc/server": "1.15.3",
|
|
"axios": "^1.20.0",
|
|
"dotenv": "^18.0.1",
|
|
"drizzle-orm": "^0.45.3",
|
|
"express": "^5.2.1",
|
|
"helmet": "^8.1.0",
|
|
"ioredis": "^6.0.0",
|
|
"pg": "^8.23.0",
|
|
"pino": "^10.3.1",
|
|
"prom-client": "^15.1.3",
|
|
"ws": "^8.21.3",
|
|
"zod": "^4.6.5"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "^2.5.14",
|
|
"@types/express": "^5.0.6",
|
|
"@types/node": "^26.6.2",
|
|
"@types/pg": "^8.23.1",
|
|
"@types/ws": "^8.18.1",
|
|
"tsx": "^4.23.15",
|
|
"typescript": "^7.0.2",
|
|
"@types/bun": "latest"
|
|
}
|
|
} |