Skip to content

Commit 2217bcc

Browse files
lobsterkatieAbhiPrasad
authored andcommitted
fix(types): Make @sentry/types a runtime dependency in gatsby and nextjs (#5086)
In order that it be installed with the SDK, we make the types package a runtime/regular dependency of all of our other packages, so it's there for anyone using the SDK in a TS app. In the gatsby and nextjs packages, though, it's listed as a dev dependency, and therefore won't be installed. This corrects that by moving it to be a regular dependency in both packages.
1 parent 0e89e7a commit 2217bcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/gatsby/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dependencies": {
2323
"@sentry/react": "7.0.0-beta.0",
2424
"@sentry/tracing": "7.0.0-beta.0",
25+
"@sentry/types": "7.0.0-beta.0",
2526
"@sentry/utils": "7.0.0-beta.0",
2627
"@sentry/webpack-plugin": "1.18.9"
2728
},
@@ -30,7 +31,6 @@
3031
"react": "15.x || 16.x || 17.x || 18.x"
3132
},
3233
"devDependencies": {
33-
"@sentry/types": "7.0.0-beta.0",
3434
"@testing-library/react": "^13.0.0",
3535
"react": "^18.0.0"
3636
},

packages/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"@sentry/tracing": "7.0.0-beta.0",
2626
"@sentry/utils": "7.0.0-beta.0",
2727
"@sentry/webpack-plugin": "1.18.9",
28+
"@sentry/types": "7.0.0-beta.0",
2829
"tslib": "^1.9.3"
2930
},
3031
"devDependencies": {
31-
"@sentry/types": "7.0.0-beta.0",
3232
"@types/webpack": "^4.41.31",
3333
"next": "10.1.3"
3434
},

0 commit comments

Comments
 (0)