Skip to content

Commit

Permalink
Merge pull request #4023 from ds300/main
Browse files Browse the repository at this point in the history
[api-extractor] support .d.mts and .d.cts files
  • Loading branch information
dmichon-msft authored Jul 12, 2023
2 parents a694821 + 620f1da commit 0995ec8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/api-extractor/src/api/ExtractorConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class ExtractorConfig {
path.join(__dirname, '../schemas/api-extractor-defaults.json')
);

private static readonly _declarationFileExtensionRegExp: RegExp = /\.d\.ts$/i;
private static readonly _declarationFileExtensionRegExp: RegExp = /\.d\.(c|m)?ts$/i;

/** {@inheritDoc IConfigFile.projectFolder} */
public readonly projectFolder: string;
Expand Down
10 changes: 10 additions & 0 deletions common/changes/@microsoft/api-extractor/main_2023-03-20-14-36.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@microsoft/api-extractor",
"comment": "Add api-extractor support for .d.mts and .d.cts files",
"type": "patch"
}
],
"packageName": "@microsoft/api-extractor"
}

0 comments on commit 0995ec8

Please sign in to comment.