From 068fcb3afa91ce3c7fac187d2bd06c46d447d0da Mon Sep 17 00:00:00 2001 From: Nicola Krumschmidt Date: Mon, 15 Mar 2021 15:15:41 +0100 Subject: [PATCH] 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. --- api/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/package.json b/api/package.json index 4cab3fb152..1a8a1540e1 100644 --- a/api/package.json +++ b/api/package.json @@ -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",