DFE-Digital / rails-template

Rails 7 template with GOV.UK Frontend
27 stars 5 forks source link

Switch from Yarn 1 to Yarn 4 #34

Closed peteryates closed 7 months ago

peteryates commented 7 months ago

It makes sense for new projects to start on the latest version of Yarn 🧶

4 has been out for some time now, confusingly it has its own 'package manager' so we install Yarn in the usual way then specify the version we want to use with yarn set version stable. Even more confusingly, yarn set version latest targets v1, which hasn't been the latest for years. There's more info on that in Yarn's questions and answers.

image

peteryates commented 7 months ago

Ah yeah, removing --check-files rings a bell from our upgrading of ECF last year. Apparently it's no longer needed.