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 pnpm v8 #207

Merged
merged 5 commits into from
Oct 24, 2023
Merged

chore pnpm v8 #207

merged 5 commits into from
Oct 24, 2023

Conversation

nlkluth
Copy link
Member

@nlkluth nlkluth commented Oct 24, 2023

What

Upgrade pnpm to v8

Why

Breakout update to isolate breaking changes

Info

Vercel automatically supports v8 with a 6.0 lockfile https://vercel.com/changelog/automatic-pnpm-v8-support

It seems like we are in a bit of a mixed state between lockfile 6.0 and pnpm@8. Running pnpm i with the latest lockfile won't make any changes, however if you delete the lockfile and run it will generate the new file (as in this PR) with autoInstallPeers: true which is the major change. This is also true if you make any workspaces changes, which is what I am running into.

This is breaking CI which has frozen lockfile settings. My PR was failing due to this change. Downgrading my pnpm was not the answer, and this change to pnpm-lock.yml seems almost unavoidable with the latest pnpm version once you make any change.

Help

We'll need to get around the frozen lockfile as a one-time deal 🤔

@vercel
Copy link

vercel bot commented Oct 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
nextjs-sanity-fe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 24, 2023 7:31pm

Copy link
Member

@scottrippey scottrippey left a comment

Choose a reason for hiding this comment

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

I think you need an update to .github/workflows/deploySanity.yml too.
And let's add the .npmrc fix to ensure a better developer experience.

@nlkluth nlkluth merged commit dbda7ac into main Oct 24, 2023
8 checks passed
@nlkluth nlkluth deleted the chore/pnpm-v8 branch October 24, 2023 20:00
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.

3 participants