-
Notifications
You must be signed in to change notification settings - Fork 8
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
Towards yarn v3 (berry) #29
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/kachkaev/njt/DdY7PmqyZBWUhp5BqiFw16JtsdJ9 |
!.yarn/releases | ||
!.yarn/plugins |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
!.yarn/releases | |
!.yarn/plugins |
You probably don't want prettier to touch these files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah you are right! Same for ESLint and Markdownlint. What is interesting though is that I just ran yarn fix:prettier
and did not notice any .yarn/*
paths in stdout. I guess that something in my approach to config files ends up excluding all folders starting with the dot by default. For that reason, I had to add !/.github/
a while ago (see above) — otherwise the yamls were not formatted.
I’ll see what's best: to keep things as is or to ‘break the symmetry’ between the ignore files. Gonna switch to work work till the next weekend 🙂
You can manually apply that fix as a patch if you want, so you don't have to wait. |
@ivanstanev 👋 I saw you were contributing to snyk/snyk and decided to ping you if that’s OK. As I’m trying to upgrade the project to Yarn 2 (Berry), I seem to be having a problem with the Snyk reports. The details show this:
My suspicion is that the problem could be to do with UPD (2020-10-20 22:45 BST): I created a Snyk support request #7168. Their reply (TL;DR): The feature is being worked on, but no timeline yet. They’ll update me when it’s done. |
The irony in that error is that the V1 lockfile isn't valid YAML while the V2 lockfile is 😄 |
Any update on this? |
This PR is partially replaced by #160 (I’ve upgraded Yarn but kept |
Mission complete! 🕺 |
Edit 2021-11: A smaller version of this PR landed in #160 (it upgrades Yarn from v1 to v3 but keeps
node_modules
). PnP mode is activated in #161.Bump Yarn
yarn set version berry yarn install yarn dlx @yarnpkg/pnpify --sdk vscode rm -rf node_modules
Tweak
.gitignore
etc.Replace
yarn-deduplicate
withyarn dedupe
.Change
yarn
args in CI and in git hooksHoist ESLint plugins 😞
Bring back Prettier plugins
potentially existing solution (relies on hoisted plugins?) [Bug] Prettier is unable to load plugins in PNP environment yarnpkg/berry#1903 (comment)possible improvement: A better Prettier CLI and config file prettier/prettier#7073 (comment)config
→plugins
already. Adding them to my shared config worked! 🎉Wait for Use require.resolve as a fallback of path.resolve DavidAnson/markdownlint#342 to fix Markdownlint
Investigate failing GitHub integration with Snyk (see separate comment below)
Track Picking a different typescript.tsdk from a list / use in a multi-root workspace with yarn2 pnp microsoft/vscode#108866
Wait for yarn2 Vercel build failed - No Next.js version could be detected in your project vercel/vercel#5280 to fix Deployment to Vercel
From Vercel’s knowledge base: https://vercel.com/knowledge/does-vercel-support-yarn-2
Case study: [Case Study] Vercel+nextjs PnP compatibility yarnpkg/berry#2031
Workaround:
FORCE_BUILDER_TAG=canary
in Vercel dashboard