Skip to content

Commit 37adabf

Browse files
committed
Refactor package.json: remove socket.io-client from dependencies, add as optional peerDependency
1 parent 7c04894 commit 37adabf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,21 @@
3737
],
3838
"author": "LovesWorking (https://github.com/LovesWorking)",
3939
"license": "MIT",
40-
"dependencies": {
41-
"socket.io-client": "^4.7.4"
42-
},
40+
"dependencies": {},
4341
"peerDependencies": {
4442
"@tanstack/react-query": "^4.0.0 || ^5.0.0",
45-
"react": "^18 || ^19"
43+
"react": "^18 || ^19",
44+
"socket.io-client": "*"
4645
},
4746
"peerDependenciesMeta": {
4847
"react-native": {
4948
"optional": true
5049
},
5150
"@react-native-async-storage/async-storage": {
5251
"optional": true
52+
},
53+
"socket.io-client": {
54+
"optional": true
5355
}
5456
},
5557
"devDependencies": {

0 commit comments

Comments
 (0)