Skip to content

Commit

Permalink
Adds @types/react as optional peer deps (#1837)
Browse files Browse the repository at this point in the history
* Adds @types/react as optional peer deps

* Adds changeset

* Add @types/react as optional peer dep to @emotion/react as well

* Tweak changeset

Co-authored-by: Mateusz Burzyński <mateuszburzynski@gmail.com>
  • Loading branch information
arcanis and Andarist committed Jul 7, 2020
1 parent ab09e9e commit 58dc08a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/fluffy-fireants-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@emotion/react': patch
'@emotion/styled': patch
---

Fixed TS compatibility under [PnP](https://classic.yarnpkg.com/en/docs/pnp/) environments by making `@types/react` an optional peer dependency.
3 changes: 3 additions & 0 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"devDependencies": {
Expand Down
3 changes: 3 additions & 0 deletions packages/styled/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"peerDependenciesMeta": {
"@babel/core": {
"optional": true
},
"@types/react": {
"optional": true
}
},
"devDependencies": {
Expand Down

0 comments on commit 58dc08a

Please sign in to comment.