Skip to content

fix(exports): drop broken bun condition pointing at unshipped src/ — v6.7.2#73

Merged
Wolfe-Jam merged 1 commit into
mainfrom
fix/drop-broken-bun-exports-condition
May 26, 2026
Merged

fix(exports): drop broken bun condition pointing at unshipped src/ — v6.7.2#73
Wolfe-Jam merged 1 commit into
mainfrom
fix/drop-broken-bun-exports-condition

Conversation

@Wolfe-Jam
Copy link
Copy Markdown
Owner

Removes the bun exports condition that pointed at ./src/index.ts (not in the published tarball). Bun consumers couldn't resolve from 'faf-cli' against the tarball; Node was unaffected. Now both runtimes resolve to dist/index.js.

Downstream impact: unblocks dropping the src/utils/faf-cli-bridge.ts workaround from faf-mcp 2.1.1 + claude-faf-mcp 5.6.1 + (incoming) grok-faf-mcp 1.4.1. Bridge-removal PRs to follow once those repos bump to ^6.7.2.

Smoke-tested: bun import resolves cleanly, scoreFafYaml is a function.
Tests: 748/0 (was 748/0). tsc clean.

…— v6.7.2

Bun's resolver always picks the `bun` exports condition first → fails to
find `./src/index.ts` (not in the published tarball) → all downstream
bun-test consumers crash at module-load. Node is unaffected (ignores
the `bun` condition).

Removed the line; bun now falls through to `default` → `dist/index.js`,
same compiled JS Node was already loading. No internal use of the
condition either (faf-cli's `dev` script invokes `bun src/cli.ts`
directly by path).

Downstream impact: removes the need for the `src/utils/faf-cli-bridge.ts`
workaround in faf-mcp 2.1.1 + claude-faf-mcp 5.6.1 + (incoming)
grok-faf-mcp 1.4.1. Once faf-mcp/claude/grok bump to ^6.7.2, the bridge
files can be removed in follow-up PRs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
faf-cli Ready Ready Preview, Comment May 26, 2026 6:37pm

@Wolfe-Jam Wolfe-Jam merged commit 21715a8 into main May 26, 2026
12 checks passed
@Wolfe-Jam Wolfe-Jam deleted the fix/drop-broken-bun-exports-condition branch May 26, 2026 18:40
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