Skip to content

Commit 7be2fba

Browse files
chore: update docs for dependency auto check
1 parent 6aa84ff commit 7be2fba

2 files changed

Lines changed: 8 additions & 31 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ They are based on the [npm-check-updates](https://github.com/raineorshine/npm-ch
185185
> having duplicates in the yarn.lock, you can run `yarn dedupe --check` and `yarn dedupe` to
186186
> apply deduplication. The duplicate check is enforced in the example github actions.
187187
188+
While `deps:check` will give you a detailed info about about dep versions across the project, it doesn't automatically pinpoint mismatching versions between apps in the repo. To automatically find and fix mismatches, run `yarn lint:dependency-versions` in the root to make sure all deps in the monorepo are updated to the same version. Check the output, and fix issues by running `lint:dependency-versions --fix`.
189+
188190
### Symbolic links
189191

190192
Monorepo uses symbolic links to share assets and locales between apps and packages, e.g.:
@@ -397,4 +399,6 @@ To help keeping deps up-to-date, see the `yarn deps:check && yarn deps:update` s
397399
> by setting `defaultSemverRangePrefix: ""` in [yarnrc.yml](./.yarnrc.yml). But this would make the default for packages/\* as well.
398400
> Better to handle `yarn add something --exact` on per-case basis.
399401

402+
While `deps:check` will give you a detailed info about about dep versions across the project, it doesn't automatically pinpoint mismatching versions between apps in the repo. To automatically find and fix mismatches, run `yarn lint:dependency-versions` in the root to make sure all deps in the monorepo are updated to the same version. Check the output, and fix issues by running `lint:dependency-versions --fix`.
403+
400404
**Note about updating deps across the monorepo**: when updating a dep, it's important to update it in all the packages that use it, and make sure every dep is updated to the same version. Version differences can cause all kinds of hard-to-debug issues.

yarn.lock

Lines changed: 4 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7036,17 +7036,7 @@ __metadata:
70367036
languageName: node
70377037
linkType: hard
70387038

7039-
"@types/jest@npm:*":
7040-
version: 29.4.0
7041-
resolution: "@types/jest@npm:29.4.0"
7042-
dependencies:
7043-
expect: "npm:^29.0.0"
7044-
pretty-format: "npm:^29.0.0"
7045-
checksum: e2e6a41c81340d2f00bcf6bbc7c5506832702207dd61d2d1431485d5ecb8280048ff15b92f6d6a3ecf6eb0b1e73809c9327200d08c9528bf38630bab4944d089
7046-
languageName: node
7047-
linkType: hard
7048-
7049-
"@types/jest@npm:^29.2.4":
7039+
"@types/jest@npm:*, @types/jest@npm:^29.2.4":
70507040
version: 29.4.1
70517041
resolution: "@types/jest@npm:29.4.1"
70527042
dependencies:
@@ -7684,24 +7674,7 @@ __metadata:
76847674
languageName: node
76857675
linkType: hard
76867676

7687-
"@typescript-eslint/parser@npm:^5.42.0":
7688-
version: 5.54.0
7689-
resolution: "@typescript-eslint/parser@npm:5.54.0"
7690-
dependencies:
7691-
"@typescript-eslint/scope-manager": "npm:5.54.0"
7692-
"@typescript-eslint/types": "npm:5.54.0"
7693-
"@typescript-eslint/typescript-estree": "npm:5.54.0"
7694-
debug: "npm:^4.3.4"
7695-
peerDependencies:
7696-
eslint: ^6.0.0 || ^7.0.0 || ^8.0.0
7697-
peerDependenciesMeta:
7698-
typescript:
7699-
optional: true
7700-
checksum: 2d996fd4ffdcbd510e3a12db73ec0f83a3db892e8fac23cd1103a3d03b5e0c49edd552e99eb1004640120870fdc3c60d428442e6500c133920db1774477268fe
7701-
languageName: node
7702-
linkType: hard
7703-
7704-
"@typescript-eslint/parser@npm:^5.47.1":
7677+
"@typescript-eslint/parser@npm:^5.42.0, @typescript-eslint/parser@npm:^5.47.1":
77057678
version: 5.55.0
77067679
resolution: "@typescript-eslint/parser@npm:5.55.0"
77077680
dependencies:
@@ -7805,7 +7778,7 @@ __metadata:
78057778
languageName: node
78067779
linkType: hard
78077780

7808-
"@typescript-eslint/utils@npm:5.54.0, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.43.0, @typescript-eslint/utils@npm:^5.45.0":
7781+
"@typescript-eslint/utils@npm:5.54.0":
78097782
version: 5.54.0
78107783
resolution: "@typescript-eslint/utils@npm:5.54.0"
78117784
dependencies:
@@ -7823,7 +7796,7 @@ __metadata:
78237796
languageName: node
78247797
linkType: hard
78257798

7826-
"@typescript-eslint/utils@npm:5.55.0":
7799+
"@typescript-eslint/utils@npm:5.55.0, @typescript-eslint/utils@npm:^5.10.0, @typescript-eslint/utils@npm:^5.43.0, @typescript-eslint/utils@npm:^5.45.0":
78277800
version: 5.55.0
78287801
resolution: "@typescript-eslint/utils@npm:5.55.0"
78297802
dependencies:

0 commit comments

Comments
 (0)