-
Notifications
You must be signed in to change notification settings - Fork 609
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
[api-extractor]: Upgrade typescript minor to 3.4 #1124
Conversation
FYI you are upgrading the compiler that is used to compile API Extractor itself. If you want to upgrade the compiler that API Extractor uses when analyzing a project, that's this line: |
04abc3c
to
61e8f0c
Compare
61e8f0c
to
e89adb8
Compare
@octogonz Thanks, I've changed the PR to correctly upgrade typescript. |
@iclanton maybe you could help with this? It seems that API-Extractor-on-TypeScript 3.3.3333 is not able to analyze projects that build using rush-stack-compiler-3.2, whereas API-Extractor-on-TypeScript 3.1.6 (our current master) seems to work okay. Here's an example error when building the rushell library (which uses rush-stack-compiler-3.2):
@iclanton I wonder if RSC should always invoke API Extractor using the We could probably "solve" this by upgrading all the WBT projects to the latest RSC, but the scenario is supposed to work: The whole idea is that we don't want to have to maintain separate API Extractor release branches for each TypeScript compiler release, and we also don't want to be forced to constantly upgrade everything to the latest compiler. |
Actually, it appears that we're already doing that: message.handled = true;
},
typescriptCompilerFolder: ToolPaths.typescriptPackagePath
}; I'm going to update this PR and see if I can figure out what's going on. |
bf59c76
to
be359c2
Compare
Weird... I started over with a clean upgrade: API Extractor now uses typescript 3.4 for analysis, while API Extractor itself is still built using RSC 3.2. It worked perfectly the first time. The |
Awesome 🎉 |
This feature was published with the API Extractor beta release 7.0.41 |
Upgrades the typescript version used by
api-extractor
to analyze projects.