Skip to content

Commit

Permalink
Add dotenv
Browse files Browse the repository at this point in the history
The dotenv package makes it easy for node to access data defined in
a .env file.  It's nearly ubiquituous and super handy for local
development since the dev doesn't have to manually export everything.
  • Loading branch information
slifty committed Jan 7, 2022
1 parent 0fec3b1 commit daf3969
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
16 changes: 15 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -50,6 +50,7 @@
"typescript": "^4.5.4"
},
"dependencies": {
"@sentry/node": "^6.16.1"
"@sentry/node": "^6.16.1",
"dotenv": "^10.0.0"
}
}

0 comments on commit daf3969

Please sign in to comment.