fast-glob
fast-glob copied to clipboard
Investigate the possibility of using `picomatch.scan` instead of `glob-parent`
Currently, fast-glob has two dependencies that can extract the base static directory from patterns.
Right now we are using glob-parent for this, which has not had new versions released for a long time and has several bugs (https://github.com/gulpjs/glob-parent/issues/63, https://github.com/gulpjs/glob-parent/issues/60).
The purpose of the issue is to make a decision:
- Switch to
picomatch.scaninstead ofglob-parentwithout losing accuracy. - Take the time to fix the issues of the
glob-parentpackage.
Related issues on the fast-glob side:
- https://github.com/mrmlnc/fast-glob/issues/380, cannot be fixed without changes in the
glob-parentpackage. - https://github.com/mrmlnc/fast-glob/issues/375, can be fixed on your side with hacks.
- https://github.com/mrmlnc/fast-glob/issues/480, the second part of the issue involves removing escape characters from the pattern's base static part. A useful option is
unescape', which is not present in theglob-parent` package. - https://github.com/mrmlnc/fast-glob/issues/262, the base directory can be
.fora\\/*.