chore: bun l

This commit is contained in:
Charlie Lamb
2026-03-13 19:21:23 +00:00
parent 4b61906032
commit 766455e253
3 changed files with 19 additions and 1 deletions

View File

@@ -101,7 +101,7 @@
},
"packages/autumn-js": {
"name": "autumn-js",
"version": "1.0.0-beta.9",
"version": "1.0.0-beta.10",
"dependencies": {
"query-string": "^9.2.2",
"rou3": "^0.6.1",

View File

@@ -64,6 +64,7 @@
"dx": "bun scripts/dx.ts",
"d:test": "lsof -ti:8080 -ti:3000 | xargs kill -9 2>/dev/null || true; ENV_FILE=.env infisical run --env=test -- bun scripts/dev.ts",
"p": "ENV_FILE=.env.prod infisical run --env=prod -- bun scripts/dev.ts",
"l": "bash ./scripts/dev-local.sh",
"setup": "node scripts/setup/setup.js",
"setup:test": "infisical run --env=dev -- bun scripts/setup/setup-test.ts",
"migrate-functions": "infisical run --env=dev -- bun scripts/migrations/migrate-functions.ts",

17
scripts/dev-local.sh Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -euo pipefail
database_url="${LOCAL_DATABASE_URL:-postgresql://postgres:postgres@localhost:5432/autumn}"
cache_url="${LOCAL_CACHE_URL:-redis://localhost:6379}"
echo "dev-local: overriding Infisical DATABASE_URL/CACHE_URL with local values and disabling CACHE_CERT"
exec infisical run --env=prod -- env \
ENV_FILE=.env.prod \
NODE_ENV=development \
DATABASE_URL="${database_url}" \
CACHE_URL="${cache_url}" \
CACHE_URL_US_EAST="${cache_url}" \
CACHE_CERT="" \
REDIS_URL="${cache_url}" \
bun scripts/dev.ts "$@"