Skip to content

piecyk/yarn-berry-netlify-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

yarn-berry-netlify-plugin

This plugin creates a workaround for netlify yarn3 issues, till netlify/build-image#612 is resolved.

Usage

As the plugin needs to run before fetching modules, can't be resolved from registry. Maybe as git submodule?

Then include it into netlify.toml file. Corepack is used for resolving yarn, and because of that supported node version is >=16. Next we need disable default npm install using NPM_FLAGS version hack.

[build.environment]
  NODE_VERSION = "16"
  NPM_FLAGS = "--version"

[[plugins]]
  package = "/yarn-berry-netlify-plugin"

We cannot use NETLIFY_USE_YARN because of netlify/build-image#779

Set yarn version in packageManager in package.json, latest is "packageManager": "yarn@3.2.1"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published