Skip to content

Commit

Permalink
Merge pull request #29 from osule/support-install-in-yarn-workspaces
Browse files Browse the repository at this point in the history
Improve yarn detection
  • Loading branch information
srl295 committed May 14, 2019
2 parents a632e50 + ed9f94e commit 9216975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install-spawn.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ module.exports = function npmInstallNpm(fullIcu, advice) {
var args;


if ( /yarn(\.js)?$/.test(npmPath) ) {
if ( /yarn((.*cli)?\.js)?$/.test(npmPath) ) {
console.log('Looks like you are using yarn…');
installVerb = 'add';
args = [ npmPath, 'add', icupkg, '--no-lockfile', '--ignore-scripts' ];
Expand Down

0 comments on commit 9216975

Please sign in to comment.