Skip to content

Commit 51a2a4d

Browse files
committedDec 16, 2024·
fix: move @types/react to peerDependencies
fix #152
1 parent 9cfc8fa commit 51a2a4d

File tree

2 files changed

+104
-130
lines changed

2 files changed

+104
-130
lines changed
 

‎package.json

+8-3
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@
7575
"flow-bin": "^0.145.0",
7676
"gh-pages": "^2.0.1",
7777
"glob": "^8.0.3",
78-
"global-jsdom": "^9.0.1",
79-
"jsdom": "^22.1.0",
78+
"global-jsdom": "^25.0.0",
79+
"jsdom": "^25.0.1",
8080
"mocha": "^10.2.0",
8181
"raw-loader": "^4.0.2",
8282
"react": "^19.0.0",
@@ -91,14 +91,19 @@
9191
"dependencies": {
9292
"@babel/runtime": "^7.20.6",
9393
"@types/prop-types": "^15.7.3",
94-
"@types/react": "^19.0.1",
9594
"classnames": "^2.2.6",
9695
"prop-types": "^15.7.2"
9796
},
9897
"peerDependencies": {
9998
"@mui/material": "^5.0.0 || ^6.0.0",
99+
"@types/react": "^16.8.0 || ^17 || ^18 || ^19",
100100
"react": "^16.8.0 || ^17 || ^18 || ^19"
101101
},
102+
"peerDependenciesMeta": {
103+
"@types/react": {
104+
"optional": true
105+
}
106+
},
102107
"main": "dist/index.js",
103108
"module": "dist/index.mjs",
104109
"types": "dist/index.d.ts",

‎pnpm-lock.yaml

+96-127
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.