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 25, 2023
1 parent 1ea04ea commit d25da17
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
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
5 changes: 4 additions & 1 deletion test/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1584,14 +1584,17 @@ __metadata:
version: 0.0.0-use.local
resolution: "react-clock@portal:../::locator=react-clock-test-page%40workspace%3A."
dependencies:
"@types/react": "*"
"@wojtekmaj/date-utils": ^1.1.2
clsx: ^2.0.0
get-user-locale: ^2.2.1
prop-types: ^15.6.0
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: node
linkType: soft

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 d25da17

Please sign in to comment.