Repository navigation
fix(mcp): prevent dev watcher from deleting http.js and update docs - #330
Conversation
|
Someone is attempting to deploy a commit to the superserve Team on Vercel. A member of the Team first needs to authorize it. |
ecc3237 to
2831440
Compare
|
Rebased onto Still reproducible on current This makes Two notes for whoever picks it up:
@meAmitPatil sorry to tag you directly — you're the most recent committer in |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Prajwal2246 Thanks for the contribution and for fixing this! |
Summary
This PR fixes the issue where
bun run devdeletesdist/http.jsand causes@superserve/mcp/httpimport failures in the Next.js app. It also resolves the missingdependsOnconfiguration for the dev task.Fixes #329
Changes Made
turbo.json: Added"dependsOn": ["^build"]to the"dev"task so dependencies are built before the dev server starts (preventing emptydist/folders on fresh clones).packages/mcp/package.json: Updated the"dev"script to run both tsup watchers concurrently (tsup --watch & tsup --watch --config tsup.http.config.ts).packages/mcp/tsup.config.ts: ConverteddefineConfigto a function and setclean: !options.watch. This prevents the watcher from wiping the directory and deletinghttp.jsduring concurrent dev builds.CONTRIBUTING.md: As requested in the issue, added the missing directories (apps/mcp,packages/mcp,tests/, anddocs/) to the Repo Structure section.Testing
bun run buildfollowed bybun run devlocally. Verified thathttp.jsis no longer deleted by the watcher.bun run lint,bun run typecheck,bun run test,bun run build).