Skip to content

Commit 3f1d36a

Browse files
author
Luca Forstner
committed
Update
1 parent f94f5dc commit 3f1d36a

File tree

3 files changed

+59
-445
lines changed

3 files changed

+59
-445
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,9 +274,9 @@ jobs:
274274
uses: ./.github/actions/restore-cache
275275
with:
276276
dependency_cache_key: ${{ needs.job_build.outputs.dependency_cache_key }}
277-
- name: Check for duplicate dependencies
278-
# Run `npx yarn-deduplicate yarn.lock` locally to resolve any duplicates.
279-
run: npx yarn-deduplicate yarn.lock --list --fail
277+
- name: Check for duplicate dependencies in lockfile
278+
# Run `yarn dedupe-deps:fix` locally to resolve any duplicates.
279+
run: yarn dedupe-deps:check
280280
- name: Lint source files
281281
run: yarn lint:lerna
282282
- name: Lint for ES compatibility

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
"lint:lerna": "lerna run lint",
3030
"lint:prettier": "prettier \"**/*.{md,css,yml,yaml}\" \"packages/**/**.{ts,js,mjs,cjs,mts,cts,jsx,tsx,astro,vue}\" --check",
3131
"lint:es-compatibility": "es-check es2020 ./packages/*/build/{bundles,npm/cjs,cjs}/*.js && es-check es2020 ./packages/*/build/{npm/esm,esm}/*.js --module",
32+
"dedupe-deps:check": "yarn-deduplicate yarn.lock --list --fail",
33+
"dedupe-deps:fix": "yarn-deduplicate yarn.lock",
3234
"postpublish": "lerna run --stream --concurrency 1 postpublish",
3335
"test": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests}\" test",
3436
"test:unit": "lerna run --ignore \"@sentry-internal/{browser-integration-tests,e2e-tests,integration-shims,node-integration-tests}\" test:unit",
@@ -134,7 +136,8 @@
134136
"ts-node": "10.9.1",
135137
"typescript": "~5.0.0",
136138
"vitest": "^2.1.8",
137-
"yalc": "^1.0.0-pre.53"
139+
"yalc": "^1.0.0-pre.53",
140+
"yarn-deduplicate": "6.0.2"
138141
},
139142
"//_resolutions_comment": [
140143
"Because new versions of strip-ansi, string-width, and wrap-ansi are ESM only packages,",

0 commit comments

Comments
 (0)