Auto: NPM Plugin with lerna requires yarn installed globally

Created on 2 Apr 2021  路  2Comments  路  Source: intuit/auto

Describe the bug

When yarn is NOT installed on computer (old man here using npm) while using the NPM plugin with mono repo via lerna, the below lines error out :

https://github.com/intuit/auto/blob/v10.24.1/plugins/npm/src/index.ts#L382
https://github.com/intuit/auto/blob/v10.24.1/plugins/npm/src/index.ts#L691
https://github.com/intuit/auto/blob/v10.24.1/plugins/npm/src/index.ts#L839

Is there a reason not to use npx? Or is the expectation to use auto is having yarn installed?

I see npx being used here so why both?

To Reproduce

1) ensure yarn is NOT installed on your machine
1) setup auto with a mono-repo with lerna
1) run auto shipit
1) will get this error

But the actual error is around yarn not being installed.

Expected behavior

No dependency on yarn being globally installed.

bug released

All 2 comments

Ahh, yep, I think we'd noticed this earlier and meant to change it but didn't get around to it. Thanks for the report @sethomas, it shouldn't be dependent on yarn.


:rocket: Issue was released in v10.24.3 :rocket:

Was this page helpful?
0 / 5 - 0 ratings