Skip to content

Commit

Permalink
Move @types/react to optional peerDependencies
Browse files Browse the repository at this point in the history
Closes #132
  • Loading branch information
wojtekmaj committed Jul 17, 2023
1 parent 1ea04ea commit 41e841a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
],
"license": "MIT",
"dependencies": {
"@types/react": "*",
"@wojtekmaj/date-utils": "^1.1.2",
"clsx": "^2.0.0",
"get-user-locale": "^2.2.1",
Expand All @@ -53,6 +52,7 @@
"@testing-library/jest-dom": "^5.15.0",
"@testing-library/react": "^14.0.0",
"@types/node": "*",
"@types/react": "*",
"eslint": "^8.26.0",
"eslint-config-wojtekmaj": "^0.9.0",
"husky": "^8.0.0",
Expand All @@ -67,9 +67,15 @@
"vitest": "^0.30.1"
},
"peerDependencies": {
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
"@types/react": {
"optional": true
}
},
"publishConfig": {
"access": "public",
"provenance": true
Expand Down
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4307,8 +4307,12 @@ __metadata:
typescript: ^5.0.0
vitest: ^0.30.1
peerDependencies:
"@types/react": ^16.8.0 || ^17.0.0 || ^18.0.0
react: ^16.8.0 || ^17.0.0 || ^18.0.0
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0
peerDependenciesMeta:
"@types/react":
optional: true
languageName: unknown
linkType: soft

Expand Down

0 comments on commit 41e841a

Please sign in to comment.