Skip to content

Commit cb7c5b9

Browse files
committed
use catalog for react & react-dom
this guarantees the same version for all packages and thus avoids type errors
1 parent 3c37b5c commit cb7c5b9

File tree

8 files changed

+366
-407
lines changed

8 files changed

+366
-407
lines changed

apps/docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
"@tailwindcss/postcss": "^4.1.17",
5353
"@types/mdx": "^2.0.13",
5454
"@types/node": "^24.10.1",
55-
"@types/react": "^19",
56-
"@types/react-dom": "^19",
55+
"@types/react": "catalog:",
56+
"@types/react-dom": "catalog:",
5757
"postcss": "^8.5.6",
5858
"tailwindcss": "^4.1.17",
5959
"tw-animate-css": "^1.4.0",

apps/shirt-shop-api/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"devDependencies": {
1818
"@tailwindcss/postcss": "^4",
1919
"@types/node": "^20",
20-
"@types/react": "^19",
21-
"@types/react-dom": "^19",
20+
"@types/react": "catalog:",
21+
"@types/react-dom": "catalog:",
2222
"tailwindcss": "^4",
2323
"typescript": "^5"
2424
}

examples/shirt-shop/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
},
3333
"devDependencies": {
3434
"@types/node": "^22.13.5",
35-
"@types/react": "^19",
36-
"@types/react-dom": "^19",
35+
"@types/react": "catalog:",
36+
"@types/react-dom": "catalog:",
3737
"postcss": "^8.5.3",
3838
"tailwindcss": "^4.0.9",
3939
"typescript": "^5.7.3"

examples/snippets/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
"devDependencies": {
3030
"@tailwindcss/typography": "0.5.10",
3131
"@types/node": "^20",
32-
"@types/react": "^19",
33-
"@types/react-dom": "^19",
32+
"@types/react": "catalog:",
33+
"@types/react-dom": "catalog:",
3434
"postcss": "^8",
3535
"shiki": "1.24.0",
3636
"tailwindcss": "^3.4.1",

packages/flags/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@
8484
"devDependencies": {
8585
"@arethetypeswrong/cli": "0.18.2",
8686
"@types/node": "20.11.17",
87-
"@types/react": "^19",
88-
"@types/react-dom": "^19",
87+
"@types/react": "catalog:",
88+
"@types/react-dom": "catalog:",
8989
"@vitejs/plugin-react": "4.2.1",
9090
"msw": "2.6.4",
9191
"tsup": "8.5.1",

0 commit comments

Comments
 (0)