Browse Source

get-files: fix ignored directories

master
Guillermo Rauch 9 years ago
parent
commit
5f4a05f183
  1. 6
      lib/get-files.js

6
lib/get-files.js

@ -53,6 +53,12 @@ export default async function getFiles (path, pkg) {
const ignoredFilter = (ignored) => (file) => {
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);
});
};

Loading…
Cancel
Save