Skip to content

fix(rw-node): add backstage.pluginPackages so prepack succeeds#93

Merged
yumike merged 1 commit into
mainfrom
fix/rw-node-plugin-packages
Jun 29, 2026
Merged

fix(rw-node): add backstage.pluginPackages so prepack succeeds#93
yumike merged 1 commit into
mainfrom
fix/rw-node-plugin-packages

Conversation

@yumike

@yumike yumike commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Problem

yarn workspace @rwdocs/backstage-plugin-rw-node prepack aborted with:

Plugin library package @rwdocs/backstage-plugin-rw-node is missing a
backstage.pluginPackages, please run 'backstage-cli repo fix --publish'

rw-node declares pluginId: "rw", joining the "rw" plugin group, but lacked the backstage.pluginPackages array that every grouped package must carry.

Fix

Ran backstage-cli repo fix --publish, which:

  • Adds backstage.pluginPackages to rw-node (and lists rw-node in the other grouped packages).
  • Normalizes all six packages to the CLI 0.36 canonical publish shape: drops the redundant main/module/types from publishConfig (prepack injects them per role), adds the package.json self-export under typesVersions, and marks the libraries sideEffects: false.
  • Removes rw-node's phantom module: dist/index.esm.js entry — it is a CJS-only node-library.

This matches Backstage's own canonical node-library shape (verified against @backstage/plugin-permission-node on backstage-cli 0.36.4).

Verification

All publish-metadata only:

  • prepack for rw-node → now succeeds
  • yarn typecheck
  • yarn build
  • yarn lint
  • formatting clean (npx prettier --check)

🤖 Generated with Claude Code

rw-node declares `pluginId: "rw"`, joining the "rw" plugin group, but
lacked the `backstage.pluginPackages` array that every grouped package
must carry, so `backstage-cli package prepack` aborted with:

    Plugin library package @rwdocs/backstage-plugin-rw-node is missing a
    backstage.pluginPackages, please run 'backstage-cli repo fix --publish'

Ran `backstage-cli repo fix --publish`, which adds the array to rw-node
(and lists rw-node in the other grouped packages) and incidentally
normalizes all six packages to the CLI 0.36 canonical publish shape:
drop the redundant main/module/types from publishConfig (prepack injects
them per role), add the package.json self-export under typesVersions, and
mark the libraries sideEffects:false. This also removes rw-node's phantom
`module: dist/index.esm.js` entry — it is a CJS-only node-library.

All publish-metadata only; typecheck, build, and lint pass, and prepack
for rw-node now succeeds.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@yumike yumike merged commit 675d554 into main Jun 29, 2026
1 check passed
@yumike yumike deleted the fix/rw-node-plugin-packages branch June 29, 2026 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant