Skip to content

fix(cicd-statistics): declare dependencies that were only available through hoisting - #12472

Draft
sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/cicd-statistics-declare-deps
Draft

sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/cicd-statistics-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 plugin-cicd-statistics uses some it doesn't declare.

  • Add @types/react as an optional peer, since the published types import react.
  • Add @backstage/filter-predicates, which dist/alpha.d.ts imports. Knip lists it as unused, since only the generated types use it.
  • Add prop-types, a peer of @material-ui/pickers.

✔️ 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

…hrough hoisting

The published types of plugin-cicd-statistics import react and
@backstage/filter-predicates, but the package declares neither
@types/react nor @backstage/filter-predicates. It also depends on
@material-ui/pickers without providing its prop-types peer. 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-cicd-statistics workspaces/cicd-statistics/plugins/cicd-statistics patch v0.23.0

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