Closed alexander-akait closed 6 months ago
ignore
is documented to accept an array, so you are using it incorrectly.
@sindresorhus It works correctly before, for example in v13, and fast-glob supports string and array of strings, but it was not documented, directoryPaths.map is not a function
inside globby, because it can return string
but it was not documented
There are no guarantees when using undocumented behavior.
I'm not a big fan of accepting both a string
and string[]
in general. It's better to make it simple and always do string[]
when multiple values are accepted.
I'm happy to accept a PR to improve the error message when a string is accidentally passed though.
Code:
Output:
Can be fixed using
ignore: ["**/index.ejs"]
, i.e. as array