Skip to content

Commit 2e51100

Browse files
authored
fix(cloudflare): Make @cloudflare/workers-types an optional peer dependency (#15554)
Redeclare the `@cloudflare/workers-types` package as an optional peer dependency rather than an optional dependency. With other SDKs now depending on `@sentry/cloudflare`, we'd pull in the type package into non-cloudflare projects. (more details: #15536 (comment)).
1 parent 288a366 commit 2e51100

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cloudflare/package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,14 @@
5151
"dependencies": {
5252
"@sentry/core": "9.3.0"
5353
},
54-
"optionalDependencies": {
54+
"peerDependencies": {
5555
"@cloudflare/workers-types": "^4.x"
5656
},
57+
"peerDependenciesMeta": {
58+
"@cloudflare/workers-types": {
59+
"optional": true
60+
}
61+
},
5762
"devDependencies": {
5863
"@cloudflare/workers-types": "^4.20240725.0",
5964
"@types/node": "^18.19.1",

0 commit comments

Comments
 (0)