-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace dotenv with node's --env-file flag
- Loading branch information
1 parent
2d38f6b
commit 64390fe
Showing
6 changed files
with
28 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env -S node -r ./src/lib/tracing.cjs | ||
#!/usr/bin/env -S node --env-file=.env --require=./src/lib/tracing.cjs | ||
import main from '../src/main.js' | ||
|
||
await main() |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,11 @@ | |
}, | ||
"main": "src/main.js", | ||
"scripts": { | ||
"dev": "node --env-file=.env --require=./src/lib/tracing.cjs --watch bin/www.js", | ||
"lint": "eslint . ; prettier . --check", | ||
"lint:fix": "eslint . --fix ; prettier --write .", | ||
"prepare": "husky install || true", | ||
"start": "bin/www.js", | ||
"start:dev": "node -r ./src/lib/tracing.cjs --watch bin/www.js", | ||
"test": "vitest", | ||
"test:cov": "vitest run --coverage", | ||
"validate": "lint-staged" | ||
|
@@ -51,7 +51,6 @@ | |
"body-parser": "^1.19.0", | ||
"cors": "^2.8.3", | ||
"date-fns": "^2.29.3", | ||
"dotenv": "^10.0.0", | ||
"email-templates": "^8.0.7", | ||
"envalid": "^7.2.1", | ||
"express": "^4.15.2", | ||
|
@@ -95,7 +94,8 @@ | |
"testcontainers": "^9.0.0", | ||
"vitest": "^0.23.4" | ||
}, | ||
"packageManager": "[email protected]+sha512.0e9d42e92bd2318408ed81eaff2da5f78baf23ee7d12a6eed44a6e2901d0f29d7ab715d1b918ade601f72e769a824d9a5c322383f22bbbda5dd396e79de2a077", | ||
"engines": { | ||
"node": ">=18" | ||
"node": ">=20" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters