Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement RFC 0014: Enable support for running Yarn Berry apps #223

Open
Tracked by #627
thitch97 opened this issue Aug 5, 2022 · 0 comments
Open
Tracked by #627

Implement RFC 0014: Enable support for running Yarn Berry apps #223

thitch97 opened this issue Aug 5, 2022 · 0 comments

Comments

@thitch97
Copy link
Contributor

thitch97 commented Aug 5, 2022

Context

As part of the effort to support building applications which use Yarn Berry (RFC 0014), this buildpack should be modified to produce a start command which accommodates the new CLI requirements.

Details

Detection

The buildpack should check for the existence of .yarnrc.yml and, if it is present, should require either node_modules or yarn_pkgs depending on the value of the nodeLinker field. If .yarnrc.yml is absent and yarn.lock is present, node_modules should be required.

Build

The buildpack should set a start command in the format yarn node <args> ..., instead of simply node <args>.

Acceptance Criteria

Given an application which uses Yarn Berry for package management:

  • The buildpack should correctly require yarn-install
  • A start command in the format yarn node <args> ... should be set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📝 Todo
Development

No branches or pull requests

1 participant