Skip to content

Commit dafab94

Browse files
committed
fix(ui-components): move react from dependencies to peer and dev dependencies
Signed-off-by: Aleksey Shestakov <alshestakov25@gmail.com>
1 parent e7bbce7 commit dafab94

4 files changed

Lines changed: 111 additions & 212 deletions

File tree

‎.changeset/cozy-teeth-speak.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@node-core/ui-components': patch
3+
---
4+
5+
Move react to peerDependencies and devDependencies to fix runtime duplicate hooks error in consumer applications

‎packages/ui-components/package.json‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@
6161
"@radix-ui/react-tabs": "^1.1.18",
6262
"@radix-ui/react-tooltip": "^1.2.13",
6363
"@vcarl/remark-headings": "~0.1.0",
64-
"classnames": "catalog:",
65-
"react": "catalog:"
64+
"classnames": "catalog:"
6665
},
6766
"devDependencies": {
6867
"@eslint-react/eslint-plugin": "~5.8.6",
@@ -74,7 +73,7 @@
7473
"@tailwindcss/postcss": "~4.3.3",
7574
"@testing-library/user-event": "~14.6.1",
7675
"@types/node": "catalog:",
77-
"@types/react": "catalog:",
76+
"@types/react": "catalog:peer-react19",
7877
"concurrently": "9.2.1",
7978
"cross-env": "catalog:",
8079
"css-loader": "7.1.4",
@@ -85,6 +84,7 @@
8584
"postcss-calc": "~11.2.1",
8685
"postcss-cli": "^11.0.1",
8786
"postcss-loader": "8.2.1",
87+
"react": "catalog:peer-react19",
8888
"storybook": "~10.6.0",
8989
"style-loader": "4.0.0",
9090
"stylelint": "17.14.1",
@@ -95,6 +95,9 @@
9595
"tsx": "4.23.1",
9696
"typescript": "catalog:"
9797
},
98+
"peerDependencies": {
99+
"react": "catalog:peer-react19"
100+
},
98101
"imports": {
99102
"#ui/*": {
100103
"types": [

0 commit comments

Comments
 (0)