Skip to content

Fix ignore and expandDirectories default handling#252

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
aaronccasanova:fix-normalize-options-defaults
Jul 1, 2023
Merged

Fix ignore and expandDirectories default handling#252
sindresorhus merged 1 commit intosindresorhus:mainfrom
aaronccasanova:fix-normalize-options-defaults

Conversation

@aaronccasanova
Copy link
Contributor

Hey folks! I'm working on a CLI that forwards options from util.parseArgs to globby and encountered a runtime error when undefined is passed to the ignore option. While investigating the error I found that both the ignore and expandDirectories defaults are overridden when undefined is passed. I've included this same patch in my program so feel free to close this PR if the existing behavior is expected 👋

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