-
Notifications
You must be signed in to change notification settings - Fork 12.8k
possibility to pipe output without creating temp files #2118
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
Are you looking for the compiler API to do this? https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API Or is there some other scenario you have in mind? |
This is currently an issue tracked by #1226. |
In addition to @danquirk's response, if you are looking to do intermediate processing, you can use our compiler API, or utilize something like typescript-simple which also uses our API. Could you describe whether either of these sufficiently answers your question? |
It's just for build script written on pure node js script without any grunt, gulp and other trendy odd stuff. Seems I need to use compiler API and write customized CompilerHost. |
In that case, you'd probably be able to get away with creating a default compiler host and overwriting the |
Now compiler writes the output to disk only.
How can I compile .ts in memory?
I searched and found no results.
Thanks.
The text was updated successfully, but these errors were encountered: