chore: auto-load .env for local backend start/migrate scripts

This commit is contained in:
Bastian Wagner
2026-08-17 16:42:57 +02:00
parent 981cecbcbd
commit 698a2180aa
2 changed files with 13 additions and 11 deletions

View File

@@ -13,8 +13,9 @@
"start": "nest start api",
"start:dev": "nest start api --watch",
"start:debug": "nest start api --debug --watch",
"start:api": "node dist/apps/api/src/main.js",
"start:worker": "node dist/apps/worker/src/main.js",
"start:api": "node --env-file-if-exists=../.env dist/apps/api/src/main.js",
"start:worker": "node --env-file-if-exists=../.env dist/apps/worker/src/main.js",
"migrate": "node --env-file-if-exists=../.env dist/apps/api/src/migration.js",
"lint": "eslint \"{apps,libs}/**/*.ts\" --fix",
"test": "jest --runInBand",
"test:watch": "jest --watch",