Remove dotenv preloading from api dev script (#4540)

Now that there is a native way to specify the config path by using the
CONFIG_PATH env var, this is not needed anymore and even prevents that
env var from working correctly because the preloaded dotenv overwrites
the specified config file.
This commit is contained in:
Nicola Krumschmidt
2021-03-15 15:15:41 +01:00
committed by GitHub
parent 76db69893b
commit 068fcb3afa

View File

@@ -53,7 +53,7 @@
"scripts": {
"start": "npx directus start",
"build": "rimraf dist && tsc --build && copyfiles \"src/**/*.*\" -e \"src/**/*.ts\" -u 1 dist",
"dev": "cross-env DIRECTUS_DEV=true NODE_ENV=development ts-node-dev --files --transpile-only --respawn --watch \".env\" --inspect --require dotenv/config src/start.ts",
"dev": "cross-env DIRECTUS_DEV=true NODE_ENV=development ts-node-dev --files --transpile-only --respawn --watch \".env\" --inspect -- src/start.ts",
"cli": "cross-env DIRECTUS_DEV=true NODE_ENV=development ts-node --script-mode --transpile-only src/cli/index.ts",
"lint": "eslint \"src/**/*.ts\" cli.js index.js",
"prepublishOnly": "npm run build",