fix(rw-node): add backstage.pluginPackages so prepack succeeds#93
Merged
Conversation
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>
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.
Problem
yarn workspace @rwdocs/backstage-plugin-rw-node prepackaborted with:rw-nodedeclarespluginId: "rw", joining the "rw" plugin group, but lacked thebackstage.pluginPackagesarray that every grouped package must carry.Fix
Ran
backstage-cli repo fix --publish, which:backstage.pluginPackagestorw-node(and listsrw-nodein the other grouped packages).main/module/typesfrompublishConfig(prepack injects them per role), adds thepackage.jsonself-export undertypesVersions, and marks the librariessideEffects: false.rw-node's phantommodule: dist/index.esm.jsentry — it is a CJS-only node-library.This matches Backstage's own canonical node-library shape (verified against
@backstage/plugin-permission-nodeon backstage-cli 0.36.4).Verification
All publish-metadata only:
prepackfor rw-node → now succeedsyarn typecheck✓yarn build✓yarn lint✓npx prettier --check)🤖 Generated with Claude Code