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",
|
||||
"test": "turbo run test",
|
||||
"db:generate": "pnpm --filter @hexahost/database db:generate",
|
||||
"db:migrate": "pnpm --filter @hexahost/database db:migrate",
|
||||
"db:push": "pnpm --filter @hexahost/database db:push",
|
||||
"bootstrap:admin": "pnpm --filter @hexahost/database bootstrap:admin",
|
||||
"db:seed": "pnpm --filter @hexahost/database db:seed"
|
||||
"db:migrate": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:migrate'",
|
||||
"db:push": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:push'",
|
||||
"bootstrap:admin": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database bootstrap:admin'",
|
||||
"db:seed": "bash -c 'set -a && source .env && set +a && pnpm --filter @hexahost/database db:seed'"
|
||||
},
|
||||
"devDependencies": {
|
||||
"turbo": "^2.3.3",
|
||||
|
||||
Reference in New Issue
Block a user