Skip to content
Open
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
2 changes: 1 addition & 1 deletion plugins/auth-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"start": "backstage-cli package start"
},
"dependencies": {
"@backstage/backend-common": "workspace:^",
"@backstage/backend-common": "0.24.1",

Choose a reason for hiding this comment

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

Correctness: Pinning @backstage/backend-common to 0.24.1 breaks monorepo workspace resolution, causing version drift. Revert to workspace:^ to maintain consistent dependency resolution.

🤖 AI Agent Prompt for Cursor/Windsurf

📋 Copy this prompt to your AI coding assistant (Cursor, Windsurf, etc.) to get help fixing this issue

File: plugins/auth-node/package.json
Line: 25

Problem: The dependency `@backstage/backend-common` was changed from `workspace:^` to a hardcoded version `0.24.1`. This breaks the workspace protocol used in monorepo setups (like those using Yarn workspaces or pnpm workspaces), preventing automatic version resolution and potentially causing version inconsistencies across the project.

Fix: Revert the change to use `workspace:^` instead of the pinned version. The workspace protocol ensures that all packages in the monorepo use the same local version of `@backstage/backend-common`, maintaining consistency and enabling proper dependency linking.

Replace line 25:
    "@backstage/backend-common": "0.24.1",
With:
    "@backstage/backend-common": "workspace:^",

This maintains the monorepo dependency management strategy used by the other dependencies in this file (@backstage/config, @backstage/errors).
✨ Committable Code Suggestion

💡 This is a one-click fix! Click "Commit suggestion" to apply this change directly to your branch.

Suggested change
"@backstage/backend-common": "0.24.1",
"clean": "backstage-cli package clean",
"start": "backstage-cli package start"
},
"dependencies": {
"@backstage/backend-common": "workspace:^",
"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@types/express": "*",

"@backstage/config": "workspace:^",
"@backstage/errors": "workspace:^",
"@types/express": "*",
Expand Down
Loading