Skip to content

Feature Request: Enable corepack by default #403

@danreeves

Description

@danreeves

Describe the Feature Request
Enable corepack by default

Is your feature request related to a particular problem?
The version of yarn in the image is v1. The recommended way to install latest versions of yarn is via corepack. Corepack is not enabled so you need to add an extra sudo corepack enable yarn in each job you run a yarn command.

See more:

How will this feature request benefit CircleCI jobs using this image?
It will allow users to install yarn in the recommended fashion and remove extra command they need to run in each job. It also will allow users to de-duplicate package manager version info.

Describe the solution you would like to see
Corepack should be enabled by default. Running yarn should use the version specified in the package.json packageManager property.

Describe alternatives you have considered

  • npm i -g yarn@[my-version]
  • sudo corepack enable yarn@[my-version]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions