Skip to content

Silence esbuild + workspace bin warnings on build - #33

Merged
reaatech merged 1 commit into
mainfrom
fix-build-warnings
May 23, 2026
Merged

reaatech merged 1 commit into
mainfrom
fix-build-warnings

Conversation

@reaatech

Copy link
Copy Markdown
Owner

Summary

Resolves two cosmetic warnings seen when running pnpm build.

1. Ignored build scripts: esbuild — pnpm 10 blocks dependency build scripts by default. esbuild (used by tsup) has a postinstall; added it to pnpm.onlyBuiltDependencies so it runs instead of being nagged about.

2. Failed to create bin … rag-eval-mcp-server … dist/bin.js — the root build script was pnpm install && turbo run build. On a clean tree (dist absent), the inline pnpm install tried to symlink the CLI's dependency bin before mcp-server was built. CI already installs before building (ci.yml), so that inline install was redundant and the source of the warning. build is now a pure turbo run build (turbo builds mcp-server before cli via the dep graph); the one-shot install+build flow is preserved as a new bootstrap script.

Neither warning affected published packages — the tarballs ship dist, and the CLI imports startMcpServer directly rather than via the bin symlink.

Test plan

  • pnpm install — no esbuild warning
  • rm -rf packages/mcp-server/dist && pnpm build — no bin warning, 10/10 tasks
  • pnpm typecheck, pnpm lint, pnpm test (20/20) — all green

🤖 Generated with Claude Code

- allowlist esbuild in pnpm.onlyBuiltDependencies so its postinstall
  runs instead of being blocked (pnpm 10 default)
- make root `build` a pure `turbo run build`; the previous
  `pnpm install && turbo run build` re-linked the cli's mcp-server bin
  before dist was built, triggering an ENOENT bin warning on clean trees
  (and in CI, which already installs before building)
- add a `bootstrap` script for the one-shot install+build convenience

Cosmetic only — published tarballs ship dist and the CLI imports
startMcpServer directly rather than via the bin symlink.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@reaatech
reaatech merged commit 5ff27b9 into main May 23, 2026
22 of 24 checks passed
@reaatech
reaatech deleted the fix-build-warnings branch May 23, 2026 18:48
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