-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
fix: handle undefined and null as stats value #302
fix: handle undefined and null as stats value #302
Conversation
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.
Need tests
@evilebottnawi, done |
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.
Good work. Thanks for helping. Let's wait CI green.
Oh, you need to support Node 4. Il'll update the code. |
In certain cases depending on the inputFileSystem `stats` doesn't throw, but returns a falsey value such as `undefined` and `null`. In this case an error from globby will be thrown `Patterns must be a string or an array of strings`
/cc @alan-agius4 Is everything finished and does this solve the problem? |
Yes it does |
In certain cases depending on the inputFileSystem
stats
doesn't throw, but returns a falsey value such asundefined
andnull
. In this case an error from globby will be thrownPatterns must be a string or an array of strings
Relates to: angular/angular-cli#12686