Refactor database command scripts in package.json to source environment variables using bash, enhancing command execution for database operations.
This commit is contained in:
@@ -13,10 +13,10 @@
|
|||||||
"typecheck": "turbo run typecheck",
|
"typecheck": "turbo run typecheck",
|
||||||
"test": "turbo run test",
|
"test": "turbo run test",
|
||||||
"db:generate": "pnpm --filter @hexahost/database db:generate",
|
"db:generate": "pnpm --filter @hexahost/database db:generate",
|
||||||
"db:migrate": "pnpm --filter @hexahost/database db:migrate",
|
"db:migrate": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:migrate'",
|
||||||
"db:push": "pnpm --filter @hexahost/database db:push",
|
"db:push": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:push'",
|
||||||
"bootstrap:admin": "pnpm --filter @hexahost/database bootstrap:admin",
|
"bootstrap:admin": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database bootstrap:admin'",
|
||||||
"db:seed": "pnpm --filter @hexahost/database db:seed"
|
"db:seed": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:seed'"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"turbo": "^2.3.3",
|
"turbo": "^2.3.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user