Skip to content

Commit

Permalink
Fix #15
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Oct 13, 2018
1 parent a4b4be5 commit 5693fde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ module.exports = (opts = {}) => {
}

if (hasYarn(pkgCwd)) {
return execa('yarn', ['add', '--dev', '--use-workspaces', 'xo'], {cwd: pkgCwd}).then(post);
return execa('yarn', ['add', '--dev', '--ignore-workspace-root-check', 'xo'], {cwd: pkgCwd}).then(post);
}

return execa('npm', ['install', '--save-dev', 'xo'], {cwd: pkgCwd}).then(post);
Expand Down

0 comments on commit 5693fde

Please sign in to comment.