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": {
|
"scripts": {
|
||||||
"prebuild": "bun run scripts/validate-env.js && pnpm run typecheck",
|
"prebuild": "tsx scripts/validate-env.ts && pnpm run typecheck",
|
||||||
"build": "tsup",
|
"build": "tsup",
|
||||||
"dev": "bun --watch src/index.ts",
|
"dev": "bun --watch src/index.ts",
|
||||||
"dev:build": "tsup --watch",
|
"dev:build": "tsup --watch",
|
||||||
|
@ -30,7 +30,7 @@
|
||||||
"@buster/test-utils": "workspace:*",
|
"@buster/test-utils": "workspace:*",
|
||||||
"@buster/typescript-config": "workspace:*",
|
"@buster/typescript-config": "workspace:*",
|
||||||
"@buster/vitest-config": "workspace:*",
|
"@buster/vitest-config": "workspace:*",
|
||||||
"@hono/zod-validator": "^0.7.0",
|
"@hono/zod-validator": "^0.7.2",
|
||||||
"@supabase/supabase-js": "catalog:",
|
"@supabase/supabase-js": "catalog:",
|
||||||
"@trigger.dev/sdk": "catalog:",
|
"@trigger.dev/sdk": "catalog:",
|
||||||
"drizzle-orm": "catalog:",
|
"drizzle-orm": "catalog:",
|
||||||
|
|
|
@ -17,7 +17,7 @@ const requiredEnv = {
|
||||||
};
|
};
|
||||||
|
|
||||||
// Conditionally validate Slack environment variables if integration is enabled
|
// Conditionally validate Slack environment variables if integration is enabled
|
||||||
const conditionalEnv = {};
|
const conditionalEnv: Record<string, string> = {};
|
||||||
if (process.env.SLACK_INTEGRATION_ENABLED === 'true') {
|
if (process.env.SLACK_INTEGRATION_ENABLED === 'true') {
|
||||||
conditionalEnv.SLACK_CLIENT_ID = process.env.SLACK_CLIENT_ID;
|
conditionalEnv.SLACK_CLIENT_ID = process.env.SLACK_CLIENT_ID;
|
||||||
conditionalEnv.SLACK_CLIENT_SECRET = process.env.SLACK_CLIENT_SECRET;
|
conditionalEnv.SLACK_CLIENT_SECRET = process.env.SLACK_CLIENT_SECRET;
|
Loading…
Reference in New Issue