Skip to content

fix(scripts): pack-addons refuses unbuilt add-ons (#960) - #969

Merged
jimhoyd merged 4 commits into
mainfrom
claude/pack-addons-960
Sep 29, 2026
Merged

jimhoyd merged 4 commits into
mainfrom
claude/pack-addons-960

Conversation

@jimhoyd

@jimhoyd jimhoyd commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator

Fixes #960

What changed

  • scripts/pack-addons.ts still packs with --ignore-scripts, which matches every other pack in this repository and test/prepare.test.ts: packing keeps the built output and never builds. It now refuses before packing anything when core or an add-on has an exports or bin target that is not on disk. The error lists each missing file and the build that produces it (npm run build for core, node scripts/workspaces.ts run build for add-ons).
  • packages/core/src/addon-install.ts: loadDefinition now tells two cases apart. If the ./extension export exists but its file is missing, it names the file and says the add-on was probably packed unbuilt. If the package has no ./extension export at all, it says that. The logic lives in the exported extensionEntryError.
  • test/pack-addons.test.ts covers both cases.
  • docs/DEVELOPMENT-PIPELINE.md and scripts/README.md now say that pack-addons never builds, name the builds to run first and describe the refusal.

Evidence

  • In a checkout where core was built but the add-ons were not, node scripts/pack-addons.ts <out> now stops without packing and names audit, auth, mcp and store with their missing dist/ files.
  • npm run verify and npm run test:package pass locally (macOS, Node 26.10.0).

Limitations

  • It does not catch a stale build (dist/ older than its source). That still packs.

🤖 Generated with Claude Code

…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
jimhoyd enabled auto-merge (squash) September 29, 2026 20:30
@jimhoyd
jimhoyd merged commit 8515334 into main Sep 29, 2026
25 checks passed
@jimhoyd
jimhoyd deleted the claude/pack-addons-960 branch September 29, 2026 20:54
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.

[Bug]: pack-addons packs unbuilt add-ons, and the install error says 'has no ./extension entry'

1 participant