Skip to content

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

Closed

Description

@jimhoyd

From the third agent workflow trial's setup (maintainer-side, before any site existed).

Minimal reproduction

  1. On a clean checkout: npm ci, npm run build (core only), then pack with scripts/pack-addons.ts, without building the workspaces first.
  2. The add-on tarballs pack with no dist/: tar -tzf jimhoyd-urlcode-auth-0.6.5.tgz lists only LICENSE NOTICE package.json urlcode.json README.md SECURITY.md. Their exports still point at ./dist/extension.js.
  3. urlcode init booking --with auth,store, using a core packed with those pins.

Relevant output

{"event":"error","message":"@jimhoyd/urlcode-auth is installed but has no ./extension entry"}

The site directory is removed, so nothing can be inspected afterwards. "Installed but has no ./extension entry" suggests a malformed package, but the ./extension export exists: its target file is missing because the add-on was never built. node scripts/workspaces.ts run build before packing fixed it.

Expected:

  • pack-addons refuses to pack an add-on whose exports targets are missing (or builds the workspaces first);
  • and loadDefinition's message distinguishes "no ./extension export" from "the export's file is missing (not built?)", naming the path.

What you could not verify

Whether release CI can reach this state. It presumably builds workspaces before packing (verify:workspaces), so this likely only affects local trials and packaging by hand.

Runtime revision and environment

main f850492a (0.6.5), macOS, Node 26.10.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions