Skip to content

Commit 0995ec8

Browse files
authored
Merge pull request #4023 from ds300/main
[api-extractor] support .d.mts and .d.cts files
2 parents a694821 + 620f1da commit 0995ec8

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

apps/api-extractor/src/api/ExtractorConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class ExtractorConfig {
210210
path.join(__dirname, '../schemas/api-extractor-defaults.json')
211211
);
212212

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

215215
/** {@inheritDoc IConfigFile.projectFolder} */
216216
public readonly projectFolder: string;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@microsoft/api-extractor",
5+
"comment": "Add api-extractor support for .d.mts and .d.cts files",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@microsoft/api-extractor"
10+
}

0 commit comments

Comments
 (0)