Skip to content

fix: include dist/context.js in npm package + mark context as Beta#20

Merged
bhvbhushan merged 1 commit into
mainfrom
bhvbhushan/fix-context-beta
Apr 8, 2026
Merged

fix: include dist/context.js in npm package + mark context as Beta#20
bhvbhushan merged 1 commit into
mainfrom
bhvbhushan/fix-context-beta

Conversation

@bhvbhushan

Copy link
Copy Markdown
Owner

What broke

vibecop init --context was completely non-functional in 0.4.1 and 0.4.2. The generated hooks pointed to a non-existent file because dist/context.js was never included in the npm tarball.

Root cause: prepublishOnly ran bun run build (produces dist/cli.js) but NOT bun run build:context (produces dist/context.js). The files array in package.json listed dist/context.js but the build step never created it.

Fix

  1. Added bun run build:context to prepublishOnly script
  2. Marked context optimization as Beta everywhere (README, CHANGELOG, Starlight docs, CLI output)
  3. Added warning to re-run init --context after upgrading vibecop

Verified

$ npm pack && tar tzf vibecop-*.tgz | grep dist/
package/dist/cli.js
package/dist/context.js     ← now included

$ npm install ./vibecop-0.4.3.tgz && npx vibecop init --context
Hook path: node_modules/vibecop/dist/context.js
File exists: YES

610 tests pass, type check clean, lint clean, both builds succeed.

🤖 Generated with Claude Code

dist/context.js was missing from published 0.4.1 and 0.4.2 because
prepublishOnly didn't run build:context. This made context optimization
completely non-functional after npm install.

Also marks context optimization as Beta across all documentation,
CLI output, and changelog with warnings to re-run init --context
after upgrading.

Bumps version to 0.4.3.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bhvbhushan bhvbhushan merged commit 7bd14c8 into main Apr 8, 2026
1 check passed
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