-
-
Notifications
You must be signed in to change notification settings - Fork 179
Support API JavaScript #13
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
Comments
Not sure if I follow what you're suggesting. What's your use-case? |
I am creating a framework and it needs a command to run typescript in development mode. I am intending to use |
You mean the uncompiled TypeScript code. In your code, you can currently:
I'll considering exporting a method that spawns tsx given a file path. But the JS API will be limited to a spawn because it needs to be read by the Loader API. Would love to hear more about your use-case when you have more details. |
I tried |
I believe the output stream needs to be TTY for colors to be outputted. You can inherit the stdout to display colors: https://github.com/esbuild-kit/tsx/blob/a271f4d1773bfb0ffdd072aa36e996c6e8602b32/src/run.ts#L21-L25 |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Back to the original request. You can now spawn a tsx process without losing color in stderr. Is this request closable? |
Closed |
Hi,
I think it would be great to have a JavaScript API for other compilers to use like
tsup
Like it:
The text was updated successfully, but these errors were encountered: