Skip to content
This repository was archived by the owner on Sep 1, 2024. It is now read-only.

Commit 7bcefbe

Browse files
committed
[jest] Update Jest peerDependencies
Previously, the peerDependencies listed specific Jest sub-packages required by the plugin, but this led to yarn warnings caused by those packages being transitive dependencies rather than top-level dependencies. Since those dependencies are implied by having Jest as a dependency, we simply include `jest` as the sole peer dependency.
1 parent 0275c28 commit 7bcefbe

2 files changed

Lines changed: 2 additions & 8 deletions

File tree

‎packages/jest-plugin/package.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,7 @@
5757
"typescript": "^4.9.5"
5858
},
5959
"peerDependencies": {
60-
"@jest/console": "25.1.0 - 29",
61-
"@jest/reporters": "25.1.0 - 29",
62-
"jest-runner": "25.1.0 - 29",
63-
"jest-util": "25.1.0 - 29"
60+
"jest": "25.1.0 - 29"
6461
},
6562
"scripts": {
6663
"build": "yarn clean && tsc --noEmit && rollup --config",

‎yarn.lock‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3249,10 +3249,7 @@ __metadata:
32493249
simple-git: ^3.16.0
32503250
typescript: ^4.9.5
32513251
peerDependencies:
3252-
"@jest/console": 25.1.0 - 29
3253-
"@jest/reporters": 25.1.0 - 29
3254-
jest-runner: 25.1.0 - 29
3255-
jest-util: 25.1.0 - 29
3252+
jest: 25.1.0 - 29
32563253
languageName: unknown
32573254
linkType: soft
32583255

0 commit comments

Comments
 (0)