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

chore!: Switch from yarn to npm #1226

Merged
merged 2 commits into from
May 15, 2022
Merged

chore!: Switch from yarn to npm #1226

merged 2 commits into from
May 15, 2022

Conversation

phated
Copy link
Member

@phated phated commented May 15, 2022

Relies on #1092

While working on Windows CI for Grain, I found out that the yarn global path is not available to our test harness for some reason (no idea why). By switching to npm, the grain binary will correctly be available to powershell.exe that is executed from our test runner (upcoming PR).

I was planning to make this change as soon as we dropped node 14 support, as npm 8 has workspace support and then users don't need to worry about having yarn installed.

The one downside to this change is that all of our yarn commands are now npm run. (don't 🔫 me)

@phated phated requested a review from a team May 15, 2022 00:59
@marcusroberts
Copy link
Member

I had the same on Windows. The Grain node CLI was installed here

C:\Users\marcus\AppData\Local\Yarn\bin

which Yarn bin doesn't report as a location.

Copy link
Member

@marcusroberts marcusroberts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have no great love for yarn and needing to install yarn after node is just another step, so I'll throw you an approval!

Copy link
Member

@ospencer ospencer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing a few aliases can't fix 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants