Skip to content

Commit 40ee84f

Browse files
committed
Add Yarn dedupe CI check (jestjs#12717)
1 parent cfc1114 commit 40ee84f

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

.github/workflows/nodejs.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
run: yarn check-copyright-headers
8484

8585
yarn-validate:
86-
name: Validate Yarn constraints
86+
name: Validate Yarn dependencies and constraints
8787
runs-on: ubuntu-latest
8888
needs: prepare-yarn-cache
8989
steps:
@@ -93,8 +93,9 @@ jobs:
9393
node-version: lts/*
9494
cache: yarn
9595
- name: 'Check for unmet constraints (fix w/ "yarn constraints --fix")'
96-
run: |
97-
yarn constraints
96+
run: yarn constraints
97+
- name: 'Check for duplicate dependencies (fix w/ "yarn dedupe")'
98+
run: yarn dedupe --check
9899

99100
test:
100101
name: Node v${{ matrix.node-version }} on ${{ matrix.os }} (${{ matrix.shard }})

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@
163163
"node": "^12.13.0 || ^14.15.0 || ^16.13.0 || >=17.0.0"
164164
},
165165
"resolutions": {
166+
"@types/node": "~12.12.0",
166167
"babel-jest": "workspace:*",
167168
"jest": "workspace:*",
168169
"jest-environment-node": "workspace:*",

yarn.lock

+1-15
Original file line numberDiff line numberDiff line change
@@ -5203,27 +5203,13 @@ __metadata:
52035203
languageName: node
52045204
linkType: hard
52055205

5206-
"@types/node@npm:*, @types/node@npm:~12.12.0":
5206+
"@types/node@npm:~12.12.0":
52075207
version: 12.12.70
52085208
resolution: "@types/node@npm:12.12.70"
52095209
checksum: 69c193e0bce8fa914d478f829bd923ee662b220e069a2e00ffbe109f27d0b38fbf2a9fe78c99eb4d4ccb294248ff8de68019a2c7fadb032d301c6feca25f3d22
52105210
languageName: node
52115211
linkType: hard
52125212

5213-
"@types/node@npm:12.20.24":
5214-
version: 12.20.24
5215-
resolution: "@types/node@npm:12.20.24"
5216-
checksum: e7a13460e2f5b0b5a32c0f3af7daf1a05201552a66d542d3cc3b1ea8b52d4730250f9eb1961d755e31cfe5d03c78340911a6242657a0a9a17d6f7e341fc9f366
5217-
languageName: node
5218-
linkType: hard
5219-
5220-
"@types/node@npm:^17.0.5":
5221-
version: 17.0.23
5222-
resolution: "@types/node@npm:17.0.23"
5223-
checksum: a3517554737cbb042e76c30d0e5482192ac4d9bea0eeb086e2622d9cabf460a0eb52a696b99fcd18e7fcc93c96db6cc7ae507f6608f256ef0b5c1d8c87a5a470
5224-
languageName: node
5225-
linkType: hard
5226-
52275213
"@types/normalize-package-data@npm:^2.4.0":
52285214
version: 2.4.1
52295215
resolution: "@types/normalize-package-data@npm:2.4.1"

0 commit comments

Comments
 (0)