custom gitIgnoreFile option does not work
L1lith opened this issue · 2 comments
What version of this package are you using?
4.0.1
What operating system, Node.js, and npm version?
Windows 10, Node v12.14.1, NPM v6.13.4
What happened?
I passed the following options to the library
{
cwd: targetFolder,
ignore: ['/node_modules/'],
useGitIgnore: true,
usePackageJson: false,
gitIgnoreFile: '.emignore'
}
However when copying the target directory it completely ignored the rules set in my .emignore file, and copied the source.txt file anyways.
Target Directory Structure
source.txt
.emignore
.emignore file content
source.txt
What did you expect to happen?
I expected the rules in the .emignore to be respected but they were ignored
Are you willing to submit a pull request to fix this bug?
If the author is unwilling to, possibly
I solved the problem by implementing the "ignore-walk" library instead, in case anyone needs a solution until this is patched
It's not clear what the cause of this issue is, and we're not using this package in standard anymore, so this issue won't be fixed.