Skip to content

Commit

Permalink
fix(dotenv-flow:reload): add node resolver for exports:./config f…
Browse files Browse the repository at this point in the history
…ield, fixes #81 (#82)

This change fixes the issue with preloading `dotenv-flow/config` using
Mocha's `-r` switch.
  • Loading branch information
kerimdzhanov authored Nov 1, 2023
1 parent 074bbb2 commit 74b211b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"exports": {
".": "./lib/dotenv-flow.js",
"./config": {
"require": "./config.js"
"require": "./config.js",
"node": "./config.js"
},
"./package.json": "./package.json"
},
Expand Down

0 comments on commit 74b211b

Please sign in to comment.