check for duplicate dependencies in CI (#2682)

Run `yarn dedup` check on CI to catch unnecessary deps

### Change Type

- [x] `internal` — Any other changes that don't affect the published
package
This commit is contained in:
Dan Groshev 2024-01-29 20:42:06 +00:00 committed by GitHub
parent a51ffb9544
commit 6fe829f990
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 120 deletions

View file

@ -26,6 +26,12 @@ jobs:
- uses: ./.github/actions/setup - uses: ./.github/actions/setup
- name: Check version constraints
run: yarn constraints
- name: Check for duplicate dependencies
run: yarn dedupe --check
- name: Typecheck - name: Typecheck
run: yarn build-types run: yarn build-types
@ -38,9 +44,6 @@ jobs:
- name: Check API declarations and docs work as intended - name: Check API declarations and docs work as intended
run: yarn api-check run: yarn api-check
- name: Check version constraints
run: yarn constraints
- name: Test - name: Test
run: yarn test run: yarn test

118
yarn.lock
View file

@ -6718,13 +6718,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-darwin-arm64@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-darwin-arm64@npm:1.3.102"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@swc/core-darwin-arm64@npm:1.3.103": "@swc/core-darwin-arm64@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-darwin-arm64@npm:1.3.103" resolution: "@swc/core-darwin-arm64@npm:1.3.103"
@ -6732,13 +6725,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-darwin-x64@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-darwin-x64@npm:1.3.102"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@swc/core-darwin-x64@npm:1.3.103": "@swc/core-darwin-x64@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-darwin-x64@npm:1.3.103" resolution: "@swc/core-darwin-x64@npm:1.3.103"
@ -6746,13 +6732,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-linux-arm-gnueabihf@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.102"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@swc/core-linux-arm-gnueabihf@npm:1.3.103": "@swc/core-linux-arm-gnueabihf@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.103" resolution: "@swc/core-linux-arm-gnueabihf@npm:1.3.103"
@ -6760,13 +6739,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-linux-arm64-gnu@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-linux-arm64-gnu@npm:1.3.102"
conditions: os=linux & cpu=arm64 & libc=glibc
languageName: node
linkType: hard
"@swc/core-linux-arm64-gnu@npm:1.3.103": "@swc/core-linux-arm64-gnu@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-linux-arm64-gnu@npm:1.3.103" resolution: "@swc/core-linux-arm64-gnu@npm:1.3.103"
@ -6774,13 +6746,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-linux-arm64-musl@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-linux-arm64-musl@npm:1.3.102"
conditions: os=linux & cpu=arm64 & libc=musl
languageName: node
linkType: hard
"@swc/core-linux-arm64-musl@npm:1.3.103": "@swc/core-linux-arm64-musl@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-linux-arm64-musl@npm:1.3.103" resolution: "@swc/core-linux-arm64-musl@npm:1.3.103"
@ -6788,13 +6753,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-linux-x64-gnu@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-linux-x64-gnu@npm:1.3.102"
conditions: os=linux & cpu=x64 & libc=glibc
languageName: node
linkType: hard
"@swc/core-linux-x64-gnu@npm:1.3.103": "@swc/core-linux-x64-gnu@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-linux-x64-gnu@npm:1.3.103" resolution: "@swc/core-linux-x64-gnu@npm:1.3.103"
@ -6802,13 +6760,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-linux-x64-musl@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-linux-x64-musl@npm:1.3.102"
conditions: os=linux & cpu=x64 & libc=musl
languageName: node
linkType: hard
"@swc/core-linux-x64-musl@npm:1.3.103": "@swc/core-linux-x64-musl@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-linux-x64-musl@npm:1.3.103" resolution: "@swc/core-linux-x64-musl@npm:1.3.103"
@ -6816,13 +6767,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-win32-arm64-msvc@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-win32-arm64-msvc@npm:1.3.102"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@swc/core-win32-arm64-msvc@npm:1.3.103": "@swc/core-win32-arm64-msvc@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-win32-arm64-msvc@npm:1.3.103" resolution: "@swc/core-win32-arm64-msvc@npm:1.3.103"
@ -6830,13 +6774,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-win32-ia32-msvc@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-win32-ia32-msvc@npm:1.3.102"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@swc/core-win32-ia32-msvc@npm:1.3.103": "@swc/core-win32-ia32-msvc@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-win32-ia32-msvc@npm:1.3.103" resolution: "@swc/core-win32-ia32-msvc@npm:1.3.103"
@ -6844,13 +6781,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core-win32-x64-msvc@npm:1.3.102":
version: 1.3.102
resolution: "@swc/core-win32-x64-msvc@npm:1.3.102"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@swc/core-win32-x64-msvc@npm:1.3.103": "@swc/core-win32-x64-msvc@npm:1.3.103":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core-win32-x64-msvc@npm:1.3.103" resolution: "@swc/core-win32-x64-msvc@npm:1.3.103"
@ -6858,53 +6788,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@swc/core@npm:^1.3.55": "@swc/core@npm:^1.3.55, @swc/core@npm:^1.3.96":
version: 1.3.102
resolution: "@swc/core@npm:1.3.102"
dependencies:
"@swc/core-darwin-arm64": "npm:1.3.102"
"@swc/core-darwin-x64": "npm:1.3.102"
"@swc/core-linux-arm-gnueabihf": "npm:1.3.102"
"@swc/core-linux-arm64-gnu": "npm:1.3.102"
"@swc/core-linux-arm64-musl": "npm:1.3.102"
"@swc/core-linux-x64-gnu": "npm:1.3.102"
"@swc/core-linux-x64-musl": "npm:1.3.102"
"@swc/core-win32-arm64-msvc": "npm:1.3.102"
"@swc/core-win32-ia32-msvc": "npm:1.3.102"
"@swc/core-win32-x64-msvc": "npm:1.3.102"
"@swc/counter": "npm:^0.1.1"
"@swc/types": "npm:^0.1.5"
peerDependencies:
"@swc/helpers": ^0.5.0
dependenciesMeta:
"@swc/core-darwin-arm64":
optional: true
"@swc/core-darwin-x64":
optional: true
"@swc/core-linux-arm-gnueabihf":
optional: true
"@swc/core-linux-arm64-gnu":
optional: true
"@swc/core-linux-arm64-musl":
optional: true
"@swc/core-linux-x64-gnu":
optional: true
"@swc/core-linux-x64-musl":
optional: true
"@swc/core-win32-arm64-msvc":
optional: true
"@swc/core-win32-ia32-msvc":
optional: true
"@swc/core-win32-x64-msvc":
optional: true
peerDependenciesMeta:
"@swc/helpers":
optional: true
checksum: 882a0c9aaa0ec02391f9ef319f69c1d453e28f8543d8e594d87a58839b5481848b205ff953b3e33891ea01c79fc66249c75e65610df7a5bc297c980eaa717656
languageName: node
linkType: hard
"@swc/core@npm:^1.3.96":
version: 1.3.103 version: 1.3.103
resolution: "@swc/core@npm:1.3.103" resolution: "@swc/core@npm:1.3.103"
dependencies: dependencies: