You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: pack-addons packs unbuilt add-ons, and the install error says 'has no ./extension entry' #960
From the third agent workflow trial's setup (maintainer-side, before any site existed).
Minimal reproduction
On a clean checkout: npm ci, npm run build (core only), then pack with scripts/pack-addons.ts, without building the workspaces first.
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.
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.
Activity
docs(framework): third agent workflow trial (booking, credits, approv…
fix(scripts): pack-addons refuses unbuilt add-ons (#960) (#969)
docs(framework): record the fourth agent workflow trial (#1005)