LaunchPadLab / lp-components

Our Components
http://lp-components.herokuapp.com
MIT License
5 stars 1 forks source link

Upgrade yarn to v4 #644

Open JoseWhite opened 2 weeks ago

JoseWhite commented 2 weeks ago

Feature Description

The idea is to migrate the project away from Yarn 1 into Yarn 4.

Storybook for one has decided to drop support for Yarn 1 from Storybook v8 forward. Notes here

While this wont make it impossible for the project to continue to run storybook or newer versions, it will certainly make it more difficult to continue upgrading as Storybook no longer provides any of the migration scripts via Yarn 1.

Suggested Solution

Alternatives Considered / Existing Workarounds

Existing work around:

  1. is to switch to yarn 4 temporarily while upgrading Storybook
  2. Executes necessary scripts via yarn dlx
  3. Get the desired result on all migrated files
  4. Switch back to yarn 1
  5. remove changes made to package.json & yarn.lock
  6. Commit only desired changes

Additional Context

There are numerous improvements to be obtained by moving into Yarn 4 including but not limited to:

Reference: Yarn migration benefits

chawes13 commented 2 weeks ago

@JoseWhite Would this require a migration across all consumers (e.g., client-template)?

JoseWhite commented 1 week ago

I'm honestly not sure, and can't seem to find resources about it. Perhaps trying it as a "beta" release and seeing how it holds up on a matching consumer beta release would be good way to test it out?