We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Currently, tiny-glob takes a single glob string.
tiny-glob
It would be nice if it could also take an array of glob strings, where negations apply to previous items in the array.
For example, given the files:
src/foo.js src/bar.js src/test/baz.js
then the invocation:
await glob([ 'src/**/*.js', '!test' ]);
would return:
src/foo.js src/bar.js
This syntax is supported by fast-glob (ref), and is common in applications such as .gitignore files, and the package.json files array.
.gitignore
package.json
files
The text was updated successfully, but these errors were encountered:
For further reference, the glob library does not support arrays of globs, and NPM implements the behavior described above by doing its own transformation of the globs and the glob results: https://github.com/npm/npm-packlist/blob/f56a4cf77fbbb123f3c818777cf00555538e1c1c/lib/index.js#L224
glob
Sorry, something went wrong.
No branches or pull requests
Currently,
tiny-glob
takes a single glob string.It would be nice if it could also take an array of glob strings, where negations apply to previous items in the array.
For example, given the files:
then the invocation:
would return:
This syntax is supported by fast-glob (ref), and is common in applications such as
.gitignore
files, and thepackage.json
files
array.The text was updated successfully, but these errors were encountered: