CircleCI-Public / CircleCI-Public/cimg-node

Feature Request: Enable corepack by default

Open
#403 2 comments 16 reactions 0 assignees View on GitHub
enhancement
Dominant language
Dockerfile
Stars
46
Forks
33
Avg merge
2h 52m
Merged PRs (30d)
5

Description

**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:
- https://yarnpkg.com/getting-started/install
- https://yarnpkg.com/corepack

**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]`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.