diff --git a/src/globber.ts b/src/globber.ts index b880afc..8b6d38c 100644 --- a/src/globber.ts +++ b/src/globber.ts @@ -21,7 +21,7 @@ export function createGlobber() { return { globPackageFiles(pattern: string) { return new Promise>((resolve, reject) => - glob(path.join(pattern, 'package.json'), (err, matches) => + glob(path.join(pattern, 'package.json'), {ignore: '**/node_modules/**'}, (err, matches) => err ? /* istanbul ignore next: errors are for people who don't know what they are doing */ reject(err)