-
Notifications
You must be signed in to change notification settings - Fork 647
Closed
Labels
effort: mediumNeeds a somewhat experienced developerNeeds a somewhat experienced developerenhancementThe issue is asking for a new feature or design changeThe issue is asking for a new feature or design changehelp wantedIf you're looking to contribute, this issue is a good place to start!If you're looking to contribute, this issue is a good place to start!
Description
Summary
I've been messing around with compiling typescript to .mjs
and ran into some issues with the rollups/api extraction features:
$ npx api-extractor run --local --diagnostics
api-extractor 7.19.2 - https://api-extractor.com/
Using configuration from ./api-extractor.json
ERROR: Error parsing ./packages/foo/api-extractor.json:
The "mainEntryPointFilePath" value is not a declaration file: ./packages/foo/dist/index.d.mts
Repro steps
- Create a simple typescript project.
- Instead of using
.ts
files, name them as.mts
. - When compiled, these will result in
.mjs
,.d.mts
and appropriate map files. - Attempt to run api-extractor on the results.
Expected result: API extractor will work as normal.
Actual result: The filename fails validation - I'm not sure if this runs deeper, but the actual contents hasn't seemed to change, other than import
s/export
s will all refer to ./foo.mjs
instead of ./foo
.
Details
Standard questions
Please answer these questions to help us investigate your issue more quickly:
Question | Answer |
---|---|
@microsoft/api-extractor version? |
7.19.2 |
Operating system? | Arch Linux |
API Extractor scenario? | reporting and rollups |
Would you consider contributing a PR? | Potentially, if just the filename validation needs updating |
TypeScript compiler version? | 4.5.4 |
Node.js version (node -v )? |
16.13.1 |
eight04
Metadata
Metadata
Assignees
Labels
effort: mediumNeeds a somewhat experienced developerNeeds a somewhat experienced developerenhancementThe issue is asking for a new feature or design changeThe issue is asking for a new feature or design changehelp wantedIf you're looking to contribute, this issue is a good place to start!If you're looking to contribute, this issue is a good place to start!
Type
Projects
Status
Closed