Skip to content

fix(sonarqube): declare dependencies that were only available through hoisting - #12471

Open
sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/sonarqube-declare-deps
Open

sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/sonarqube-declare-deps

Conversation

@sebdanielsson

@sebdanielsson sebdanielsson commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Strict installs (pnpm, Yarn PnP) only resolve declared dependencies, and these packages use some they don't declare.

  • plugin-sonarqube-react: add @backstage/frontend-plugin-api, since the published types infer ApiRef from it.
  • plugin-sonarqube: add @backstage/filter-predicates, which dist/alpha.d.ts imports.

✔️ Checklist

  • A changeset describing the change and affected packages. (more info)
  • Added or updated documentation
  • Tests for new functionality and regression tests for bug fixes
  • Screenshots attached (for UI changes)
  • All your commits have a Signed-off-by line in the message. (more info)

🤖 Generated with Claude Code

https://claude.ai/code/session_01NZ5217H8AkdKkDBNzEiTik

… hoisting

The published types of plugin-sonarqube-react import
@backstage/frontend-plugin-api, and the alpha types of plugin-sonarqube
import @backstage/filter-predicates, without declaring them. Strict
installs (pnpm, Yarn's pnpm linker, PnP) can't resolve undeclared
packages.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NZ521AzxwB3vLPS9t6fABT
Signed-off-by: Sebastian Danielsson <[email protected]>
@backstage-goalie

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
@backstage-community/plugin-sonarqube-react workspaces/sonarqube/plugins/sonarqube-react patch v1.5.0
@backstage-community/plugin-sonarqube workspaces/sonarqube/plugins/sonarqube patch v1.5.0

@sebdanielsson
sebdanielsson marked this pull request as ready for review December 3, 2026 00:01
@sebdanielsson
sebdanielsson requested a review from a team as a code owner December 3, 2026 00:01
@sebdanielsson
sebdanielsson requested a review from awanlin December 3, 2026 00:01

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants