Repository navigation
fix(copilot): declare dependencies that were only available through hoisting - #12465
Draft
sebdanielsson wants to merge 2 commits into
Draft
sebdanielsson wants to merge 2 commits into
sebdanielsson wants to merge 2 commits into
Conversation
…oisting The published types of plugin-copilot import react, but @types/react was only a dev dependency. The plugin also didn't provide the @material-ui/core peer of @backstage/theme or the @mui/system peer of @mui/x-charts. Strict installs (pnpm, Yarn's pnpm linker, PnP) can't resolve undeclared packages. Forward @material-ui/core as a peer. Add @mui/system as a dependency, next to the existing @mui/material dependency that already brings it. Also declare the dev dependencies the source and tests need: the react, react-dom and react-router-dom peers, @types/luxon and @react-types/shared. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NZ521AzxwB3vLPS9t6fABT Signed-off-by: Sebastian Danielsson <[email protected]>
Only the local dev app imports @backstage/theme, so it doesn't need to be a published dependency. Having it there forced every app that installs plugin-copilot to provide @material-ui/core as a peer. Move @backstage/theme to dev dependencies and drop the @material-ui/core peer. The dev app keeps @material-ui/core as a dev dependency. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NZ521AzxwB3vLPS9t6fABT Signed-off-by: Sebastian Danielsson <[email protected]>
Contributor
Changed Packages
|
2 of 5 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey, I just made a Pull Request!
Strict installs (pnpm, Yarn PnP) only resolve declared dependencies, and
plugin-copilotuses some it doesn't declare.@types/reactas an optional peer, since the published types importreact.@mui/system, a peer of@mui/x-charts. Same range as@mui/material.@backstage/themeto dev dependencies. Only the dev app uses it, and as a dependency it needs@material-ui/coreas a peer.react,react-dom,react-router-dom,@material-ui/core,@types/luxonand@react-types/shared.✔️ Checklist
Signed-off-byline in the message. (more info)🤖 Generated with Claude Code
https://claude.ai/code/session_01NZ5217H8AkdKkDBNzEiTik