Closed FDiskas closed 5 years ago
const walk = require('ignore-walk')
const result = walk.sync({ ignoreFiles: [ '.gitignore', '.npmignore' ] })
console.log(result);
It returns only not ignored files
Thanks, I will research and test it in one or two days.
Version 1.4.0
published, it should support nested .gitignore
.
with 74 additions and 127 deletions. Nice
😄
Hi, FDiskas, I've just made some changes and release 1.8.0, now will not ignore files from .npmignore
by default.
So if you find files listed in .npmignore
are included, change configuration will make it work again.
This solution could help you with that https://www.npmjs.com/package/ignore-walk