server init events

This commit is contained in:
Nate Kelley 2025-06-23 14:51:46 -06:00
parent e77461df06
commit a2d9fc584a
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
7 changed files with 21 additions and 6 deletions

View File

@ -8,6 +8,7 @@
"scripts": {
"build": "bun build src/index.ts --outdir ./dist --target bun",
"dev": "bun --max-old-space-size=512 run --hot src/index.ts",
"dev:reset": "pnpm run dev",
"lint": "biome check .",
"prod": "bun run build && bun run start",
"start": "bun run dist/index.js",

View File

@ -6,6 +6,11 @@
"cache": false,
"persistent": true,
"dependsOn": ["@buster/database#dev"]
},
"dev:reset": {
"cache": false,
"persistent": true,
"dependsOn": ["@buster/database#dev:reset"]
}
}
}

View File

@ -18,7 +18,9 @@
"db:stop": "pnpm --filter @buster/database run db:stop",
"db:studio": "pnpm --filter @buster/database run db:studio",
"dev": "turbo dev",
"dev:server": "pnpm --filter @buster-app/server dev",
"dev:db-init": "turbo run dev:init --filter \"@buster/database\"",
"dev:server:reset": "pnpm run dev:db-init && turbo run dev --filter \"@buster-app/server\"",
"dev:server": "turbo run dev --filter \"@buster-app/server\"",
"evals": "bash scripts/evals.sh",
"format": "biome format ${1:-.}",
"format:fix": "biome format --write ${1:-.}",

View File

@ -33,7 +33,8 @@
"db:start-supabase": "supabase start",
"db:stop": "supabase stop",
"db:studio": "drizzle-kit studio",
"dev": "echo 'dev should be run from turbo.json' && true",
"dev:init": "echo 'dev:init should be run from turbo.json' && true",
"dev": "echo 'Running dev:init from turbo.json' && npm run dev:init",
"lint": "biome check .",
"stop": "pnpm run db:stop",
"test": "vitest run",
@ -45,7 +46,7 @@
"@buster/typescript-config": "workspace:*",
"@buster/vitest-config": "workspace:*",
"ai": "catalog:",
"drizzle-kit": "^0.31.1",
"drizzle-kit": "^0.31.2",
"drizzle-orm": "catalog:",
"postgres": "^3.4.7",
"zod": "catalog:"

View File

@ -5,6 +5,6 @@
"outDir": "dist",
"rootDir": "."
},
"include": ["src/**/*", "vitest.config.ts"],
"include": ["src/**/*", "vitest.config.ts", "scripts/**/*"],
"exclude": ["node_modules", "dist", "tests", "**/*.test.ts", "**/*.spec.ts"]
}

View File

@ -25,11 +25,16 @@
"persistent": false,
"dependsOn": ["db:start-supabase", "db:reset", "db:migrate"]
},
"dev": {
"dev:init": {
"cache": false,
"persistent": false,
"dependsOn": ["db:start-supabase", "db:reset", "db:migrate", "db:seed"]
},
"dev": {
"cache": false,
"persistent": false,
"dependsOn": ["db:start-supabase"]
},
"stop": {
"cache": false,
"persistent": false

View File

@ -15,7 +15,8 @@
"noEmit": false,
"preserveWatchOutput": true,
"skipLibCheck": true,
"target": "ES2022"
"target": "ES2022",
"lib": ["ESNext"]
},
"exclude": ["node_modules"],
"extends": "./type-checking.json"