Skip to content

fix(cli): expand dotenv when loading from package.json - #3681

Merged
timsuchanek merged 2 commits into
masterfrom
fix/pkg-json-env-load
Sep 17, 2020
Merged

timsuchanek merged 2 commits into
masterfrom
fix/pkg-json-env-load

Conversation

@flaviaan

@flaviaan flaviaan commented Sep 16, 2020 •

Copy link
Copy Markdown
Contributor

#3566 got merged on Monday while I was off and realized today that there was some parts of the review that wasn't fixed.

  1. it would crash if the package.json field wasn't a string
  2. it wasn't expanding the dotenv file when reading from the package.json

I also took an opportunity to refactor the logic a bit and extract it into its own function.

@flaviaan
flaviaan force-pushed the fix/pkg-json-env-load branch from 04cb399 to bacf216 Compare September 16, 2020 16:46
@timsuchanek timsuchanek added this to the Release 2.8.0 milestone Sep 17, 2020
@timsuchanek
timsuchanek merged commit ae6e0f4 into master Sep 17, 2020
@timsuchanek
timsuchanek deleted the fix/pkg-json-env-load branch September 17, 2020 08: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