Skip to content

Conversation

@rkeene
Copy link
Member

@rkeene rkeene commented Nov 4, 2025

This change updates the "run-ts" script to support running scripts that rely on more files, meaning the binFile may not be the only file compiled. It does this by keeping track of the pathname relative to the src directory and converting the pathname in the same way tsc does.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR enhances the utils/run-ts script by adding a fallback mechanism to compute the compiled JavaScript file path when the find command fails to locate it. This improves the robustness of TypeScript script execution.

  • Adds logic to construct the bin path manually using path manipulation when find fails
  • Maintains the existing error handling for when the compiled file truly doesn't exist

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 4, 2025

@rkeene rkeene self-assigned this Nov 4, 2025
@rkeene rkeene added the enhancement New feature or request label Nov 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants