Skip to content

Comments

Fix Heroku deployment: separate production TypeScript config#3

Merged
TonyCasey merged 1 commit intomainfrom
dev
Aug 18, 2025
Merged

Fix Heroku deployment: separate production TypeScript config#3
TonyCasey merged 1 commit intomainfrom
dev

Conversation

@TonyCasey
Copy link
Owner

  • Create tsconfig.prod.json for production builds without Jest types
  • Update build script to use production config
  • Excludes all test files and mock directories from production build
  • Fixes "Cannot find type definition file for 'jest'" error on Heroku

The production config extends the base tsconfig but overrides the types array to exclude Jest, which is only in devDependencies.

🤖 Generated with Claude Code

Pull Request

📋 Description

Brief description of changes made.

🚀 Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • UI/UX improvement
  • Performance optimization
  • Test improvement

🧪 Testing

  • Tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged

📱 Screenshots (if applicable)

Add screenshots to help explain your changes.

🔍 Code Review Checklist

  • Code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

🚀 Deployment Notes

  • Frontend changes require Vercel deployment
  • Backend changes require Heroku deployment
  • Environment variables need to be updated
  • Database migrations required
  • No deployment required

📈 Performance Impact

  • No performance impact
  • Improved performance
  • Potential performance impact (explain below)

🔗 Related Issues

Fixes #(issue number)

📝 Additional Notes

Add any other context about the pull request here.

- Create tsconfig.prod.json for production builds without Jest types
- Update build script to use production config
- Excludes all test files and mock directories from production build
- Fixes "Cannot find type definition file for 'jest'" error on Heroku

The production config extends the base tsconfig but overrides the types
array to exclude Jest, which is only in devDependencies.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@vercel
Copy link

vercel bot commented Aug 18, 2025

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

Project Deployment Preview Comments Updated (UTC)
frontend Ready Ready Preview Comment Aug 18, 2025 4:48pm

@TonyCasey TonyCasey merged commit 0339728 into main Aug 18, 2025
6 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.

1 participant