|
@ -53,6 +53,12 @@ export default async function getFiles (path, pkg) { |
|
|
|
|
|
|
|
|
const ignoredFilter = (ignored) => (file) => { |
|
|
const ignoredFilter = (ignored) => (file) => { |
|
|
return !ignored.some((test) => { |
|
|
return !ignored.some((test) => { |
|
|
|
|
|
// test that the target file is not under
|
|
|
|
|
|
// an ignored directory
|
|
|
|
|
|
const dir = test + '/'; |
|
|
|
|
|
if (file.substr(0, dir.length) === dir) return true; |
|
|
|
|
|
|
|
|
|
|
|
// if not match wildcards
|
|
|
return minimatch(file, test); |
|
|
return minimatch(file, test); |
|
|
}); |
|
|
}); |
|
|
}; |
|
|
}; |
|
|