Skip to content

fix(tech-radar): enable knip reports - #11986

Open
armnkumar321-spec wants to merge 3 commits into
backstage:mainfrom
armnkumar321-spec:fix/5992-tech-radar-knip-reports
Open

armnkumar321-spec wants to merge 3 commits into
backstage:mainfrom
armnkumar321-spec:fix/5992-tech-radar-knip-reports

Conversation

@armnkumar321-spec

Copy link
Copy Markdown
Contributor

Hey, I just made a Pull Request!

Part of #5992. Opts the tech-radar workspace into knip reports and removes the dependencies knip flags as unused.

Left in the app-next report on purpose:

  • @material-ui/core: not imported directly, but @backstage/theme and @material-ui/icons declare it as a peer dependency. Removing it introduces a new unmet-peer warning on yarn install.
  • @backstage/core-compat-api, @backstage/core-components, @material-ui/icons: only imported by src/components/Sidebar.tsx, which nothing references, so knip doesn't count them. tsc still compiles that file, so they can't be dropped on their own. The jenkins workspace kept the same leftovers. If you'd rather I delete the unused Sidebar.tsx and these three deps in this PR, I'm happy to.

knip-report.md is added to .prettierignore, matching the other knip-enabled workspaces. Only @backstage-community/plugin-tech-radar-backend is published and had a dependencies change (node-fetch), so it's the only package with a changeset; app, app-next and backend are private.

Checked locally on Node 24 in workspaces/tech-radar: yarn tsc:full, yarn test (17 suites, 30 tests), yarn build:knip-reports --ci, yarn prettier:check, yarn build:api-reports:only --ci, yarn backstage-cli repo build --all, yarn backstage-cli repo lint, yarn fix --check / --check --publish, the lockfile-duplicates script and verify-changesets.js all pass.

Prepared with help from Claude Code.

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

Opt the tech-radar workspace into knip reports and remove the
dependencies it flags as unused.

@material-ui/core stays in app-next because @backstage/theme and
@material-ui/icons declare it as a peer dependency. core-compat-api,
core-components and @material-ui/icons stay because they are imported
by src/components/Sidebar.tsx, which tsc still compiles.

Refs backstage#5992

Signed-off-by: Aman Kumar <[email protected]>
@backstage-goalie

backstage-goalie Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Changed Packages

Package Name Package Path Changeset Bump Current Version
app-next workspaces/tech-radar/packages/app-next none v0.0.3
app workspaces/tech-radar/packages/app none v0.0.3
backend workspaces/tech-radar/packages/backend none v0.0.2
@backstage-community/plugin-tech-radar-backend workspaces/tech-radar/plugins/tech-radar-backend patch v1.24.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