Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better out of the box TypeScript support #865

Open
lzm0 opened this issue Jun 27, 2024 · 2 comments
Open

Provide better out of the box TypeScript support #865

lzm0 opened this issue Jun 27, 2024 · 2 comments

Comments

@lzm0
Copy link

lzm0 commented Jun 27, 2024

Currently (as of 8.1.3), running TypeScript files with zx requires additional setup, such as providing a package.json and a tsconfig.json.
It would be nice if the zx cli wraps ts-node automatically when it detects a .ts file.
I would love to create a PR for this feature if it is feasible.

@antongolub
Copy link
Contributor

Spoiler: we have a similar feature in our plans :) But we'd like to make some preparatory architectural changes to support this vector (custom transpilations) and other feature extension points. It's great that you're willing to help, but we'd like to ask for a little bit of time on this.

@lzm0
Copy link
Author

lzm0 commented Jun 28, 2024

Spoiler: we have a similar feature in our plans :) But we'd like to make some preparatory architectural changes to support this vector (custom transpilations) and other feature extension points. It's great that you're willing to help, but we'd like to ask for a little bit of time on this.

Glad to hear that. Thank you for this great tool!

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

No branches or pull requests

2 participants