Skip to content

Commit 28cf7ec

Browse files
committed
move react types to optional peer dep
1 parent 8122108 commit 28cf7ec

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

package.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,22 @@
2020
"repository": "https://github.com/theKashey/use-callback-ref/",
2121
"author": "theKashey <thekashey@gmail.com>",
2222
"license": "MIT",
23+
"dependencies": {},
2324
"devDependencies": {
24-
"@types/react": "^16.9.11",
2525
"ts-react-toolbox": "^0.2.11"
2626
},
27+
"peerDependencies": {
28+
"react": "^16.8.0",
29+
"@types/react": "^16.8.0"
30+
},
31+
"peerDependenciesMeta": {
32+
"@types/react": {
33+
"optional": true
34+
}
35+
},
2736
"engines": {
2837
"node": ">=8.5.0"
2938
},
30-
"peerDependencies": {
31-
"react": "^16.8.0"
32-
},
3339
"jsnext:main": "dist/es2015/index.js",
3440
"module": "dist/es2015/index.js",
3541
"types": "dist/es5/index.d.ts",
@@ -55,6 +61,5 @@
5561
"path": "dist/es2015/useMergeRef.js",
5662
"limit": "0.2 KB"
5763
}
58-
],
59-
"dependencies": {}
64+
]
6065
}

yarn.lock

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -615,14 +615,6 @@
615615
"@types/prop-types" "*"
616616
csstype "^2.2.0"
617617

618-
"@types/react@^16.9.11":
619-
version "16.9.34"
620-
resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.34.tgz#f7d5e331c468f53affed17a8a4d488cd44ea9349"
621-
integrity sha512-8AJlYMOfPe1KGLKyHpflCg5z46n0b5DbRfqDksxBLBTUpB75ypDBAO9eCUcjNwE6LCUslwTz00yyG/X9gaVtow==
622-
dependencies:
623-
"@types/prop-types" "*"
624-
csstype "^2.2.0"
625-
626618
"@types/serve-static@*":
627619
version "1.13.2"
628620
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.13.2.tgz#f5ac4d7a6420a99a6a45af4719f4dcd8cd907a48"

0 commit comments

Comments
 (0)