Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

fix(loadDotenv): cwd is optional#273

Merged
pi0 merged 4 commits intounjs:mainfrom
igalklebanov:optional-dotenv-cwd
Sep 15, 2025
Merged

fix(loadDotenv): cwd is optional#273
pi0 merged 4 commits intounjs:mainfrom
igalklebanov:optional-dotenv-cwd

Conversation

@igalklebanov
Copy link
Member

Hey πŸ‘‹

This PR makes DotenvOptions.cwd optional.

In case dotenv is enabled in loadConfig, it was defaulting to options.cwd.
In case setupDotenv or loadDotenv are used separately, it will now default to process.cwd().

Thanks! πŸ™

@codecov
Copy link

codecov bot commented Sep 12, 2025

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… Project coverage is 78.16%. Comparing base (42d9697) to head (4939319).
⚠️ Report is 157 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #273      +/-   ##
==========================================
+ Coverage   76.92%   78.16%   +1.24%     
==========================================
  Files           7        6       -1     
  Lines         806      632     -174     
  Branches       80      127      +47     
==========================================
- Hits          620      494     -126     
+ Misses        184      138      -46     
+ Partials        2        0       -2     

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

πŸš€ New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • πŸ“¦ JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pi0 pi0 changed the title feat: make DotenvOptions.cwd optional. fix(loadDotenv): cwd is optional Sep 15, 2025
Co-authored-by: Pooya Parsa <[email protected]>
Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thnx!

@pi0 pi0 merged commit 41ee9e0 into unjs:main Sep 15, 2025
5 checks passed
@igalklebanov igalklebanov deleted the optional-dotenv-cwd branch September 15, 2025 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants