-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Enables passing --declaration
, --emitDeclarationOnly
, --declarationMap
, --soureMap
and --inlineSourceMap
to tsc --build
#51241
Conversation
tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json
Outdated
Show resolved
Hide resolved
648ce65
to
35994b1
Compare
32921e8
to
0efa044
Compare
e5a439f
to
a1390a0
Compare
--build
--declaration
, --emitDeclarationOnly
, --declarationMap
, --soureMap
and --inlineSourceMap
to tsc --build
… sourceMap and inlineSourceMap on commandline of --build
…rmine uptodate ness
…ggest emitting d.ts files as well
a1390a0
to
34e5ec2
Compare
tests/baselines/reference/config/initTSConfig/Default initialized TSConfig/tsconfig.json
Show resolved
Hide resolved
@typescript-bot pack this Going to try this on the module branch. |
Heya @jakebailey, I've started to run the tarball bundle task on this PR at 34e5ec2. You can monitor the build here. |
Hey @jakebailey, I've packed this into an installable tgz. You can install it for testing by referencing it in your
and then running There is also a playground for this build and an npm module you can use via |
Tested it out, and it does appear to work, nice! Not sure Andrew has had time to look at this quite yet, but it seems reasonable to me. Mostly test baseline changes. |
Should tsc --build src --emitDeclarationOnly --outDir dist For now I got the following error: |
all the path related options are per project specific so will not be part of |
This enables passing
--declaration
,--emitDeclarationOnly
,--declarationMap
,--soureMap
and--inlineSourceMap
totsc --build
.As part of this change:
declrationMap
options different from what the current compilerOptions are (eg if there are errors there wont be emit and emitSignature can go out of sync with options). This helps with checking if d.ts has changed or not irrespective of it being emitted with mapFixes #51164