Skip to content

Conversation

@steebchen
Copy link
Member

Summary

  • Refactor generate commands in apps/api and apps/gateway to use tsx instead of node for running TypeScript scripts
  • Add tsx as a dependency in the root package.json
  • Update turbo.json to remove redundant dependency on build for the generate pipeline
  • Clean up pnpm-lock.yaml by removing older optional esbuild versions and adding new local package resolutions

Changes

Script Execution

  • Changed generate script in apps/api/package.json and apps/gateway/package.json from:
    "generate": "node ./dist/scripts/generate-openapi.js"
    to:
    "generate": "tsx ./src/scripts/generate-openapi.ts"
    This allows direct execution of TypeScript files using tsx without prior compilation.

Dependency Updates

  • Added tsx dependency (^4.19.2) to root package.json to support running TypeScript scripts directly.
  • Updated pnpm-lock.yaml to reflect the new dependency and remove older optional esbuild versions (0.25.5), keeping only 0.25.8 and above.
  • Added local package resolutions for several internal packages (@llmgateway/cache, @llmgateway/db, @llmgateway/instrumentation, @llmgateway/logger, @llmgateway/models, @llmgateway/shared, gateway, worker) to pnpm-lock.yaml.

Turbo Pipeline

  • Modified turbo.json to update the generate pipeline's dependsOn from ["build", "^generate"] to ["^generate"] to streamline the build process.

Test plan

  • Run pnpm generate in apps/api and apps/gateway to verify scripts execute correctly with tsx.
  • Validate that the generate pipeline in Turbo runs without requiring a prior build step.
  • Ensure no regressions in build or dev workflows.
  • Confirm pnpm install completes successfully with updated lockfile and dependencies.

🌿 Generated by Terry


ℹ️ Tag @terragon-labs to ask questions and address PR feedback

📎 Task: https://www.terragonlabs.com/task/f1a28350-212b-49f0-a165-758c1c32e655

- Updated generate scripts in api and gateway apps to use tsx instead of node
- Added tsx dependency to root package.json
- Updated turbo.json generate task dependencies
- Cleaned up pnpm-lock.yaml removing old esbuild versions and adding local package resolutions
- General dependency and lockfile maintenance

Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
@bunnyshell
Copy link

bunnyshell bot commented Sep 24, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 24, 2025

Warning

Rate limit exceeded

@steebchen has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 8 minutes and 24 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 89b6095 and 5bf9d26.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (4)
  • apps/api/package.json (1 hunks)
  • apps/gateway/package.json (1 hunks)
  • package.json (1 hunks)
  • turbo.json (1 hunks)
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch terragon/refactor-generate-commands-to-tsx

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions bot changed the title Refactor generate commands to use tsx and update dependencies refactor: update generate cmds Sep 24, 2025
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.

2 participants