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
New emit pipeline and API/CLI refactor #511
Conversation
1c3bd4b
to
8b8eaca
Compare
1dea9b7
to
2d62202
Compare
2d62202
to
02699cd
Compare
c93505e
to
e767750
Compare
f2ffccc
to
4c76457
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there no way to retrieve the transpiled AST anymore?
Also would be nice to know if this can run in a browser.
This is relevant for the website.
Ah, so that's where it was used.
|
be51ac2
to
e8b89cd
Compare
API was refactored (closes CLI/Lib Refactor #393):
LuaTranspiler
was removedtranspile
, that runsprogram.emit
with custom transformers and collects emitted resultsemitTranspiledFiles
function, that writes results to disk. Later it would be replaced byCompilation
class (New module resolution and Compilation structure #432).ts.Diagnostic[]
instead of throwing/logging/exiting (Return ts diagnostics instead of throwing errors from transformer #412 still isn't completely resolved, since for now it just catchesTranspileError
thrown from transformer).transpileFiles
,transpileProject
, andtranspileVirtualProject
transpileString
to receive only a string and options. Old features may be done withtranspileVirtualProject
.CompilerOptions
aren't case-insensitive anymore. It should be normalized before using from the API.CLI was refactored:
tsc
tsc
now, with a support ofpretty
reportertsconfig.json
(liketsc
)"true"
and"false"
) are no longer allowedtstl
config object are considered as errors nowAdded support for some emit-related flags:
declaration
declarationMap
emitDeclarationOnly
noEmit
noEmitOnError
(it's not default anymore)