Skip to content

fix: correct rootDir in tsconfig and add build verification - #25

Merged
CrazzyBuilds merged 3 commits into
mainfrom
fix/tsconfig-rootdir
Aug 7, 2026
Merged

fix: correct rootDir in tsconfig and add build verification#25
CrazzyBuilds merged 3 commits into
mainfrom
fix/tsconfig-rootdir

Conversation

@CrazzyBuilds

Copy link
Copy Markdown
Contributor

Description

This Pull Request fixes the production build output structure and adds a safety check to prevent future deployment startup crashes.

Key Changes

  • Corrected rootDir: Updated compilerOptions.rootDir to ./src in tsconfig.json. This ensures that TypeScript compiles files directly to the root of /dist (producing dist/index.js) instead of nesting them in dist/src/index.js, fixing the Docker startup error.
  • Build Output Verification: Added a check in build.ts that asserts the existence of the production entrypoint (dist/index.js) post-build, failing the CI pipeline early if the output structure is incorrect.

@CrazzyBuilds CrazzyBuilds self-assigned this Aug 7, 2026
@CrazzyBuilds
CrazzyBuilds merged commit d204b1b into main Aug 7, 2026
1 of 2 checks passed
@CrazzyBuilds
CrazzyBuilds deleted the fix/tsconfig-rootdir branch August 7, 2026 20:42
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