Skip to content

Commit 58dc08a

Browse files
arcanisAndarist
andauthoredJul 7, 2020
Adds @types/react as optional peer deps (#1837)
* 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>
1 parent ab09e9e commit 58dc08a

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed
 

‎.changeset/fluffy-fireants-collect.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@emotion/react': patch
3+
'@emotion/styled': patch
4+
---
5+
6+
Fixed TS compatibility under [PnP](https://classic.yarnpkg.com/en/docs/pnp/) environments by making `@types/react` an optional peer dependency.

‎packages/react/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"peerDependenciesMeta": {
3838
"@babel/core": {
3939
"optional": true
40+
},
41+
"@types/react": {
42+
"optional": true
4043
}
4144
},
4245
"devDependencies": {

‎packages/styled/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
"peerDependenciesMeta": {
2626
"@babel/core": {
2727
"optional": true
28+
},
29+
"@types/react": {
30+
"optional": true
2831
}
2932
},
3033
"devDependencies": {

0 commit comments

Comments
 (0)
Please sign in to comment.