Skip to content

Commit eb44d0c

Browse files
brc-ddshortcuts
andauthored
fix(deps): make react an optional peer dependency in @docsearch/react (#1273)
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
1 parent 3200927 commit eb44d0c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

packages/docsearch-react/package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,16 @@
4242
"@types/react": ">= 16.8.0 < 19.0.0",
4343
"react": ">= 16.8.0 < 19.0.0",
4444
"react-dom": ">= 16.8.0 < 19.0.0"
45+
},
46+
"peerDependenciesMeta": {
47+
"@types/react": {
48+
"optional": true
49+
},
50+
"react": {
51+
"optional": true
52+
},
53+
"react-dom": {
54+
"optional": true
55+
}
4556
}
4657
}

0 commit comments

Comments
 (0)