Skip to content

fix(build): migrate build-mcpb to archiver v8 named exports#15

Merged
Dev-vlad merged 1 commit into
mainfrom
fix-mcpb-build-archiver-8
Jun 11, 2026
Merged

fix(build): migrate build-mcpb to archiver v8 named exports#15
Dev-vlad merged 1 commit into
mainfrom
fix-mcpb-build-archiver-8

Conversation

@Dev-vlad

Copy link
Copy Markdown
Member

Summary

  • The v0.2.2 publish workflow failed at the "Build MCPB bundle" step: archiver 8.0.0 (bumped in build(deps-dev): bump archiver from 7.0.1 to 8.0.0 #11) is pure ESM and dropped the default archiver("zip", opts) factory in favor of named class exports. Nothing was published (the failure happened before npm publish and release creation).
  • Fix: import { ZipArchive } from "archiver" + new ZipArchive({ zlib: { level: 9 } }). The rest of the API (pipe/file/directory/finalize) is unchanged.
  • Prevention: CI now runs npm run build:mcpb on PRs, so a dependency bump can't silently break packaging until a release tag again (this is exactly how build(deps-dev): bump archiver from 7.0.1 to 8.0.0 #11 slipped through — CI never exercised the build script).

Test plan

  • npm ci (archiver 8.0.0) + npm run build:mcpb locally: builds massive-mcp-0.2.2.mcpb, archive contents verified with unzip -l
  • CI on this PR exercises the new build:mcpb step on Node 20 and 22

After merge: re-point the v0.2.2 tag to rerun the publish workflow.

🤖 Generated with Claude Code

archiver 8.0.0 (bumped in #11) is pure ESM and replaced the default
archiver("zip", opts) factory with named class exports; the v0.2.2
publish workflow failed at "Build MCPB bundle" with "does not provide
an export named 'default'". Use `new ZipArchive(opts)` instead.

Also run build:mcpb in CI so packaging breakage from dependency bumps
surfaces on PRs instead of at release-tag time.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@Dev-vlad Dev-vlad merged commit 10b3d9c into main Jun 11, 2026
2 checks passed
@Dev-vlad Dev-vlad deleted the fix-mcpb-build-archiver-8 branch June 11, 2026 12:46
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.

1 participant