Skip to content

Conversation

@marcodejongh
Copy link
Owner

Configure the monorepo to build internal packages from TypeScript
source without requiring manual pre-compilation. This follows Next.js
monorepo best practices.

Changes:

  • Add all internal packages to transpilePackages in next.config.mjs
  • Update package.json exports to point to TypeScript source files
  • Switch all packages to moduleResolution: bundler in tsconfig
  • Remove .js extensions from all internal imports
  • Simplify Dockerfile.backend to run TypeScript directly with tsx
  • Move tsx to production dependencies for backend runtime
  • Simplify vercel.json build command (no pre-build steps needed)

Benefits:

  • No need to pre-build packages before running npm run dev
  • Next.js transpiles packages directly from source
  • Backend uses tsx to run TypeScript in both dev and production
  • Faster development workflow

@vercel
Copy link

vercel bot commented Jan 2, 2026

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

Project Deployment Review Updated (UTC)
boardsesh Building Building Preview, Comment Jan 2, 2026 11:42am

Configure the monorepo to build internal packages from TypeScript
source without requiring manual pre-compilation. This follows Next.js
monorepo best practices.

Changes:
- Add all internal packages to `transpilePackages` in next.config.mjs
- Update package.json exports to point to TypeScript source files
- Switch all packages to `moduleResolution: bundler` in tsconfig
- Remove .js extensions from all internal imports
- Simplify Dockerfile.backend to run TypeScript directly with tsx
- Move tsx to production dependencies for backend runtime
- Simplify vercel.json build command (no pre-build steps needed)

Benefits:
- No need to pre-build packages before running `npm run dev`
- Next.js transpiles packages directly from source
- Backend uses tsx to run TypeScript in both dev and production
- Faster development workflow
@marcodejongh marcodejongh force-pushed the claude/auto-build-monorepo-deps-KQAbF branch from a778334 to c5996cc Compare January 2, 2026 11:42
@marcodejongh marcodejongh merged commit 10eb9de into main Jan 2, 2026
4 of 8 checks 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.

3 participants