Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Upgrade Yarn to v3 #78

@mcmire

Description

@mcmire

This project is using Yarn v1 for managing dependencies and running package scripts. However, we're using Yarn v3 in all of our projects. We should do the same here.

Please use the module template as a guide for completing this ticket.

  • Remove .yarnrc (this is replaced with .yarnrc.yml in Yarn v3)
  • Copy over .yarnrc.yml, .yarn/releases, .yarn/plugins
  • Add a packageManager field to package.json and use the same value as in the module template
  • Copy scripts/prepack.sh over
  • Rename the prepublishOnly package script in package.json to prepack
  • Update the build-lint-test GitHub workflow to run yarn --immutable instead of yarn --frozen-lockfile

You can test that the prepack script works by running yarn pack. In this case the tests should be run before a local version of the package is built.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions