Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test:assert": "pnpm test:prod"
},
"dependencies": {
"@sentry/core": "file:../../packed/sentry-core-packed.tgz",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: The @sentry/core package is listed as a runtime dependency but is only used for a type-only import in a test file. It should be a devDependency.
Severity: LOW

Suggested Fix

In package.json, move the @sentry/core entry from the dependencies object to the devDependencies object. This correctly reflects that the package is only needed for development and type-checking, not for the runtime execution of the application.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location:
dev-packages/e2e-tests/test-applications/nextjs-16-userfeedback/package.json#L14

Potential issue: The `@sentry/core` package is incorrectly listed in `dependencies`. It
is only used for a type-only import (`import type { FeedbackEvent } ...`) within the
test file `tests/feedback.test.ts`. Since TypeScript strips type-only imports during
compilation, this package is not required for the application to run. This leads to
incorrect package configuration and potential bundle bloat. For consistency, it should
be moved to `devDependencies`, similar to how other test applications in this repository
handle type-only test dependencies.

Did we get this right? 👍 / 👎 to inform future reviews.

"@sentry/nextjs": "file:../../packed/sentry-nextjs-packed.tgz",
"@types/node": "^20",
"@types/react": "^19",
Expand Down
Loading