node-glob-gitignore
node-glob-gitignore copied to clipboard
Error "path must not be empty" introduced in 1.0.10
TypeError {
message: 'path must not be empty',
}
in sync.js
const groups = patterns.map(
pattern => new _GlobSync(pattern, opts, ignores).found
)
invoked via:
globGitignore.sync("**", {
cwd: process.cwd(),
ignore: []
});
groups contains an entry with an empty string:
["", "old.js", "package.json"]
For now I have shrinkwrapped to 1.0.9 in my projects.
Sorry for that buddy. 1.0.10 introduced a breaking change of [email protected]. I have deprecated 1.0.10 and publish a new 1.0.11 temporarily.
But could you provide a use case to reproduce the issue, so that we could fix the problem completely ?
Sorry for the delay- I'll work up a proof of concept for you this weekend.