Skip to content

fix(manage): declare dependencies that were only available through hoisting - #12474

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

sebdanielsson wants to merge 1 commit into
backstage:mainfrom
sebdanielsson:fix/manage-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-manage, plugin-manage-react, plugin-manage-module-tech-insights: add @types/react as an optional peer, since the published types import react. Add react, react-dom and react-router-dom as dev dependencies.
  • plugin-manage-react: add @backstage/config, which the published types import. Make @dnd-kit/utilities a dependency instead of a * peer that nothing provided.

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

…isting

The published types of plugin-manage, plugin-manage-react and
plugin-manage-module-tech-insights import react, but @types/react was
only a dev dependency, and the types of plugin-manage-react import
@backstage/config without declaring it. plugin-manage-react also
required @dnd-kit/utilities as a peer that nothing provided, although
it is a plain utility library that its own @dnd-kit dependencies
already depend on. Strict installs (pnpm, Yarn's pnpm linker, PnP)
can't resolve undeclared packages.

Make @dnd-kit/utilities a regular dependency, and declare the react,
react-dom and react-router-dom peers as dev dependencies so the
packages build and test without hoisting.

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-manage-module-tech-insights workspaces/manage/plugins/manage-module-tech-insights patch v0.8.0
@backstage-community/plugin-manage-react workspaces/manage/plugins/manage-react patch v2.2.1
@backstage-community/plugin-manage workspaces/manage/plugins/manage patch v1.3.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