Skip to content

Conversation

@catalinaperalta
Copy link
Member

@catalinaperalta catalinaperalta commented Dec 15, 2025

Fix output-dir processing by defaulting the value to undefined unless otherwise specified. There should be no behavioral change due to this update, due to the change to defaulting to undefined, if --output-dir isn't passed tsp-client will still resolve it to the cwd(), otherwise the value will be resolved in relation to the cwd() same as before.

@catalinaperalta catalinaperalta marked this pull request as ready for review December 18, 2025 23:38
Copilot AI review requested due to automatic review settings December 18, 2025 23:38
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 refactors the output-dir option processing to improve code clarity by explicitly handling the undefined case. The default value is changed from "." to undefined, and the resolveOutputDir function is updated to check for undefined explicitly before calling resolvePath.

Key Changes:

  • Changed the default value of the output-dir option from "." to undefined
  • Added explicit conditional logic to handle undefined output-dir by directly using process.cwd()

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.

3 participants