-
-
Notifications
You must be signed in to change notification settings - Fork 130
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
Don't throw when specifying a non-existing cwd
directory
#125
Conversation
The PR needs a better title. |
@sindresorhus PR is updated. |
cwd
directory
|
||
let stat; | ||
try { | ||
stat = fs.statSync(options.cwd); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to do this synchronously?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want a separate async version of this check. I might have been too lazy to do that initially or just forgot. PR welcome :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think we'll need it since we use globby
in a lot of modules and this might result in a small decrease in performance.
No description provided.