-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from vagonpidarasov/master
include-resolutions option added
- Loading branch information
Showing
7 changed files
with
63 additions
and
0 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 |
---|---|---|
|
@@ -41,3 +41,13 @@ allowing a potential issue to arise if `[email protected]` was installed and not | |
updated before installing. The output also tells you that although the | ||
_minimum_ allowed version is too low, the _maximum_ allowed version does | ||
satisfy the `peerDependencies` requirement. | ||
|
||
|
||
If you use resolutions section in your package.json file in order to resolve some unmet peer dependencies | ||
and want the program to take it into the account run it with include-resolutions option: | ||
|
||
``` | ||
> check-peer-deps --include-resolutions=true | ||
``` | ||
|
||
Read more about resolutions: https://yarnpkg.com/lang/en/docs/selective-version-resolutions/ |
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 @@ | ||
!node_modules/ |
6 changes: 6 additions & 0 deletions
6
__tests__/fixtures/peerDepWithResolution/node_modules/eslint-config-airbnb-base/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
__tests__/fixtures/peerDepWithResolution/node_modules/eslint/package.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"dependencies": { | ||
"eslint": "4.9.0", | ||
"eslint-config-airbnb-base": "12.1.0" | ||
}, | ||
"resolutions": { | ||
"eslint-config-airbnb-base/eslint": "4.0.9" | ||
} | ||
} |
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