Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: install peerDeps which is not optional on headless install (#5243)
* fix: install peerDeps which is not optional on headless install * chore: add testcase for install peerDependencies which is not optional * refactor: auto install Co-authored-by: Zoltan Kochan <z@kochan.io>
- Loading branch information
1 parent
c242672
commit 1beb1b4
Showing
6 changed files
with
63 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
"@pnpm/filter-lockfile": patch | ||
"@pnpm/headless": patch | ||
"pnpm": patch | ||
--- | ||
|
||
Auto install peer dependencies when auto-install-peers is set to true and the lockfile is up to date [#5213](https://github.com/pnpm/pnpm/issues/5213). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
auto-install-peers=true |
7 changes: 7 additions & 0 deletions
7
packages/headless/test/fixtures/reinstall-peer-deps/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "reinstall-peer-deps", | ||
"version": "1.0.0", | ||
"devDependencies": { | ||
"@pnpm.e2e/abc": "1.0.0" | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
packages/headless/test/fixtures/reinstall-peer-deps/pnpm-lock.yaml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters