[api-extractor] Support verbatimModuleSyntax
Summary
Support verbatimModuleSyntax
Repro steps
Use TypeScript 5.0 with --verbatimModuleSyntax flag.
Expected result: Works
Actual result:
ERROR: Error parsing tsconfig.json content: Unknown compiler option 'verbatimModuleSyntax'.
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
| Question | Answer |
|---|---|
@microsoft/api-extractor version? |
7.34.4 |
| Operating system? | Windows |
| API Extractor scenario? | N/A |
| Would you consider contributing a PR? | No |
| TypeScript compiler version? | 5.0.1-rc |
Node.js version (node -v)? |
v19.7.0 |
@octogonz - any chance we already have plans to migrate API extractor to support TypeScript 5.0? This is the last thing blocking our team from upgrading and getting the ~10% build time boost from 5.0.
This problem is especially relevant now that the @tsconfig bases contain verbatimModuleSyntax, causing any downstream project that uses API extractor to fail. Please consider prioritizing a fix for this, as it will likely soon affect vast swathes of the TypeScript ecosystem.