Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore all node_modules #31

Merged
merged 1 commit into from
Feb 23, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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