Skip to content

Commit

Permalink
Merge pull request #52 from tanmen/workspace-node-modules
Browse files Browse the repository at this point in the history
ignore node_modules packege.json for workspace
  • Loading branch information
jeffijoe committed May 28, 2020
2 parents 23f8a5c + fcf9023 commit 6bb8175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/globber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function createGlobber() {
return {
globPackageFiles(pattern: string) {
return new Promise<Array<string>>((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)
Expand Down

0 comments on commit 6bb8175

Please sign in to comment.