Skip to content

Commit

Permalink
doc/javascript: document yarn-berry for fetchYarnDeps
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Brandes <[email protected]>
  • Loading branch information
gador committed Nov 17, 2024
1 parent 76f0164 commit 6d5d7f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/languages-frameworks/javascript.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ To install the package `yarnInstallHook` uses both `npm` and `yarn` to cleanup p

- `yarnKeepDevDeps`: Disables the removal of devDependencies from `node_modules` before installation.

#### Use with `yarn-berry` and newer lockfiles
#### Use with `yarn-berry` and newer lockfiles {#javascript-yarnberry}

The above works well with `yarn` version 1. However, `yarn-berry` introduced a new version of lockfiles, which will not work with classic `yarn`. To still be able to use `fetchYarnDeps` with `yarn-berry`, you will need to supply the source folder containing the `yarn.lock` and the corresponding project files, and the version of the lockfile:

Expand Down
3 changes: 3 additions & 0 deletions doc/redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -3029,6 +3029,9 @@
"javascript-yarninstallhook": [
"index.html#javascript-yarninstallhook"
],
"javascript-yarnberry": [
"index.html#javascript-yarnberry"
],
"javascript-yarn2nix": [
"index.html#javascript-yarn2nix"
],
Expand Down

0 comments on commit 6d5d7f6

Please sign in to comment.