Repository navigation
fix(scripts): pack-addons refuses unbuilt add-ons (#960) - #969
Merged
Merged
Conversation
…a missing ./extension file (#960) pack-addons packs with --ignore-scripts, like every pack in the repository, so it never builds. It now refuses, before packing anything, a package whose exports or bin name a file that is not there, naming each file and the build that makes it. Installing an add-on whose ./extension export points at a missing file now says so and names the file, instead of claiming the package has no ./extension entry. Co-Authored-By: Claude Opus 5.5 <[email protected]>
jimhoyd
enabled auto-merge (squash)
September 29, 2026 20:30
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e references Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Fixes #960
What changed
scripts/pack-addons.tsstill packs with--ignore-scripts, which matches every other pack in this repository andtest/prepare.test.ts: packing keeps the built output and never builds. It now refuses before packing anything when core or an add-on has anexportsorbintarget that is not on disk. The error lists each missing file and the build that produces it (npm run buildfor core,node scripts/workspaces.ts run buildfor add-ons).packages/core/src/addon-install.ts:loadDefinitionnow tells two cases apart. If the./extensionexport exists but its file is missing, it names the file and says the add-on was probably packed unbuilt. If the package has no./extensionexport at all, it says that. The logic lives in the exportedextensionEntryError.test/pack-addons.test.tscovers both cases.docs/DEVELOPMENT-PIPELINE.mdandscripts/README.mdnow say that pack-addons never builds, name the builds to run first and describe the refusal.Evidence
node scripts/pack-addons.ts <out>now stops without packing and names audit, auth, mcp and store with their missingdist/files.npm run verifyandnpm run test:packagepass locally (macOS, Node 26.10.0).Limitations
dist/older than its source). That still packs.🤖 Generated with Claude Code