Fix tsconfig rootDir for correct dist output paths #41

Merged
ghost merged 3 commits from fix/docker-ts-build into main 2026-03-18 01:52:26 +00:00
ghost commented 2026-03-18 01:47:58 +00:00 (Migrated from github.com)

Summary

  • The db package's tsconfig.json included drizzle.config.ts alongside src/, which caused tsc to compute rootDir as the package root
  • Output went to dist/src/index.js instead of dist/index.js, mismatching the main: ./dist/index.js field
  • API crashed with ERR_MODULE_NOT_FOUND because it couldn't resolve the package entry point

Fix

  • Set explicit rootDir: ./src in both packages/db and packages/types tsconfigs
  • Removed drizzle.config.ts from db's build include (only needed by drizzle-kit at dev time)

Test plan

  • CI passes
  • Docker build produces correct dist/index.js in packages
  • API starts successfully in cluster

🤖 Generated with Claude Code

## Summary - The db package's `tsconfig.json` included `drizzle.config.ts` alongside `src/`, which caused `tsc` to compute `rootDir` as the package root - Output went to `dist/src/index.js` instead of `dist/index.js`, mismatching the `main: ./dist/index.js` field - API crashed with `ERR_MODULE_NOT_FOUND` because it couldn't resolve the package entry point ### Fix - Set explicit `rootDir: ./src` in both `packages/db` and `packages/types` tsconfigs - Removed `drizzle.config.ts` from db's build include (only needed by drizzle-kit at dev time) ## Test plan - [ ] CI passes - [ ] Docker build produces correct `dist/index.js` in packages - [ ] API starts successfully in cluster 🤖 Generated with [Claude Code](https://claude.com/claude-code)
This repo is archived. You cannot comment on pull requests.