mirror of https://github.com/buster-so/buster.git
update server to use tsx
This commit is contained in:
parent
4418f4991b
commit
3f8b05182d
|
@ -7,7 +7,7 @@
|
|||
}
|
||||
},
|
||||
"scripts": {
|
||||
"prebuild": "bun run scripts/validate-env.js && pnpm run typecheck",
|
||||
"prebuild": "tsx scripts/validate-env.ts && pnpm run typecheck",
|
||||
"build": "tsup",
|
||||
"dev": "bun --watch src/index.ts",
|
||||
"dev:build": "tsup --watch",
|
||||
|
@ -30,7 +30,7 @@
|
|||
"@buster/test-utils": "workspace:*",
|
||||
"@buster/typescript-config": "workspace:*",
|
||||
"@buster/vitest-config": "workspace:*",
|
||||
"@hono/zod-validator": "^0.7.0",
|
||||
"@hono/zod-validator": "^0.7.2",
|
||||
"@supabase/supabase-js": "catalog:",
|
||||
"@trigger.dev/sdk": "catalog:",
|
||||
"drizzle-orm": "catalog:",
|
||||
|
|
|
@ -17,7 +17,7 @@ const requiredEnv = {
|
|||
};
|
||||
|
||||
// Conditionally validate Slack environment variables if integration is enabled
|
||||
const conditionalEnv = {};
|
||||
const conditionalEnv: Record<string, string> = {};
|
||||
if (process.env.SLACK_INTEGRATION_ENABLED === 'true') {
|
||||
conditionalEnv.SLACK_CLIENT_ID = process.env.SLACK_CLIENT_ID;
|
||||
conditionalEnv.SLACK_CLIENT_SECRET = process.env.SLACK_CLIENT_SECRET;
|
Loading…
Reference in New Issue