Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

➖ Remove path-type dependency #162

Merged
merged 1 commit into from
Feb 2, 2021
Merged

Conversation

wwilsman
Copy link
Contributor

@wwilsman wwilsman commented Feb 2, 2021

What is this?

This dependency has many small helpers based on two single sync and async helpers. In both places we use this dependency, we only use it to check if a filepath is a directory synchronously. This is done by the depdendency wrapping fs.statSync().isDirectory() in a try-catch to catch ENOENT errors. In both places we use this helper, we are already wrapping calls in a try-catch, so we can swap out this dependency entirely with the native method.

However this dependency will still exist in our tree, as I believe cosmiconfig depends on it.

This dependency has many small helpers based on two single sync and async helpers. In both places we
use this dependency, we only use it to check if a filepath is a directory synchronously. This is
done by the depdendency wrapping fs.statSync().isDirectory() in a try-catch to catch ENOENT
errors. In both places we use this helper, we are already wrapping them in a try-catch, so we can
swap out this dependency entirely with the native method. However this dep will still exist in our
tree, as I believe cosmiconfig depends on it.
@wwilsman wwilsman added the 🧹 maintenance General maintenance label Feb 2, 2021
@wwilsman wwilsman requested a review from Robdel12 February 2, 2021 19:47
Copy link
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

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

🏁 the dep killer

@wwilsman wwilsman merged commit b1f9620 into master Feb 2, 2021
@wwilsman wwilsman deleted the ww/remove-path-type-dep branch February 2, 2021 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧹 maintenance General maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants