Skip to content

Use corepack for managing yarn version #598

@trivikr

Description

@trivikr

Is your feature request related to a problem? Please describe.

The jscodeshift project uses yarn for development, but doesn't manage yarn version using corepack recommended by yarn team.

$ node -v
v20.15.1

$ yarn
zsh: command not found: yarn

$ corepack -v
0.28.1

$ corepack enable

$ yarn
! The local project doesn't define a 'packageManager' field. Corepack will now add one referencing yarn@1.22.19+sha1.4ba7fc5c6e704fce2066ecbfb0b0d8976fe62447.
! For more details about this field, consult the documentation at https://nodejs.org/api/packages.html#packagemanager

yarn install v1.22.19
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...

warning Your current version of Yarn is out of date. The latest version is "1.22.22", while you're on "1.22.19".
info To upgrade, run the following command:
$ curl --compressed -o- -L https://yarnpkg.com/install.sh | bash
$ cp -R src/ dist/
✨  Done in 2.70s.

Describe the solution you'd like

Use corepack for managing yarn version

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions