diff --git a/package-lock.json b/package-lock.json index 5ce88cd1..5a30d3a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,8 @@ "version": "0.1.0", "license": "AGPL-3.0", "dependencies": { - "@sentry/node": "^6.16.1" + "@sentry/node": "^6.16.1", + "dotenv": "^10.0.0" }, "devDependencies": { "@babel/cli": "^7.16.7", @@ -4301,6 +4302,14 @@ "node": ">=8" } }, + "node_modules/dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==", + "engines": { + "node": ">=10" + } + }, "node_modules/duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", @@ -13385,6 +13394,11 @@ "is-obj": "^2.0.0" } }, + "dotenv": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz", + "integrity": "sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q==" + }, "duplexer3": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", diff --git a/package.json b/package.json index 09232c24..3350cb4b 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,8 @@ "check-types": "tsc", "eslint": "eslint ./src --ext .ts,.tsx", "lint": "npm run eslint && npm run check-types", - "start": "npm run build && node build/index.js", - "dev": "nodemon --delay 500ms --exec babel-node --extensions \".ts,.tsx\" src/index.ts", + "start": "npm run build && node -r dotenv/config build/index.js", + "dev": "nodemon --delay 500ms --exec babel-node -r dotenv/config --extensions \".ts,.tsx\" src/index.ts", "test": "jest" }, "author": { @@ -50,6 +50,7 @@ "typescript": "^4.5.4" }, "dependencies": { - "@sentry/node": "^6.16.1" + "@sentry/node": "^6.16.1", + "dotenv": "^10.0.0" } }