Skip to content

Commit

Permalink
Ignore all node_modules
Browse files Browse the repository at this point in the history
Ignore all occurrences of node_modules in possible subdirectories.
  • Loading branch information
Raigen committed Feb 23, 2018
1 parent d7176b4 commit 4ac2b77
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if (!isAcceptedNodeVersion()) {
// TOOD: allow passing a specific path
(async () => {
// account for nested babelrc's
const paths = await globby(['**/.babelrc', '!./node_modules/**']);
const packages = await globby(['**/package.json', '!./node_modules/**']);
const mochaOpts = await globby(['**/mocha.opts', '!./node_modules/**']);
const paths = await globby(['**/.babelrc', '!**/node_modules/**']);
const packages = await globby(['**/package.json', '!**/node_modules/**']);
const mochaOpts = await globby(['**/mocha.opts', '!**/node_modules/**']);

// if not a monorepo
if (packages.length === 1) {
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function updatePackageJSON(pkg) {
}
}

const flowConfigs = await globby(['**/.flowconfig', '!./node_modules/**']);
const flowConfigs = await globby(['**/.flowconfig', '!**/node_modules/**']);

const upgradeDepOptions = {
hasFlow: flowConfigs.length > 0,
Expand Down

0 comments on commit 4ac2b77

Please sign in to comment.