@microsoft/api-extractor
Advanced tools
Comparing version 7.38.3 to 7.38.5
@@ -169,2 +169,3 @@ /** | ||
private static readonly _defaultConfig; | ||
/** Match all three flavors for type declaration files (.d.ts, .d.mts, .d.cts) */ | ||
private static readonly _declarationFileExtensionRegExp; | ||
@@ -171,0 +172,0 @@ /** {@inheritDoc IConfigFile.projectFolder} */ |
@@ -112,2 +112,3 @@ import { JsonSchema, PackageJsonLookup, type INodePackageJson, NewlineKind } from '@rushstack/node-core-library'; | ||
private static readonly _defaultConfig; | ||
/** Match all three flavors for type declaration files (.d.ts, .d.mts, .d.cts) */ | ||
private static readonly _declarationFileExtensionRegExp; | ||
@@ -114,0 +115,0 @@ /** {@inheritDoc IConfigFile.projectFolder} */ |
@@ -675,4 +675,5 @@ "use strict"; | ||
ExtractorConfig._defaultConfig = node_core_library_1.JsonFile.load(path.join(__dirname, '../schemas/api-extractor-defaults.json')); | ||
/** Match all three flavors for type declaration files (.d.ts, .d.mts, .d.cts) */ | ||
ExtractorConfig._declarationFileExtensionRegExp = /\.d\.(c|m)?ts$/i; | ||
exports.ExtractorConfig = ExtractorConfig; | ||
//# sourceMappingURL=ExtractorConfig.js.map |
@@ -192,2 +192,11 @@ "use strict"; | ||
} | ||
// If the entity's declaration won't be included, then neither should the namespace export it | ||
// This fixes the issue encountered here: https://github.com/microsoft/rushstack/issues/2791 | ||
const exportedSymbolMetadata = collector.tryFetchMetadataForAstEntity(exportedEntity); | ||
const exportedMaxEffectiveReleaseTag = exportedSymbolMetadata | ||
? exportedSymbolMetadata.maxEffectiveReleaseTag | ||
: api_extractor_model_1.ReleaseTag.None; | ||
if (!this._shouldIncludeReleaseTag(exportedMaxEffectiveReleaseTag, dtsKind)) { | ||
continue; | ||
} | ||
if (collectorEntity.nameForEmit === exportedName) { | ||
@@ -194,0 +203,0 @@ exportClauses.push(collectorEntity.nameForEmit); |
{ | ||
"name": "@microsoft/api-extractor", | ||
"version": "7.38.3", | ||
"version": "7.38.5", | ||
"description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups", | ||
@@ -43,5 +43,5 @@ "keywords": [ | ||
"typescript": "~5.0.4", | ||
"@microsoft/api-extractor-model": "7.28.2", | ||
"@microsoft/api-extractor-model": "7.28.3", | ||
"@rushstack/node-core-library": "3.62.0", | ||
"@rushstack/ts-command-line": "4.17.1", | ||
"@rushstack/node-core-library": "3.61.0", | ||
"@rushstack/rig-package": "0.5.1" | ||
@@ -48,0 +48,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1568128
15543
+ Added@microsoft/api-extractor-model@7.28.3(transitive)
+ Added@rushstack/node-core-library@3.62.0(transitive)
- Removed@microsoft/api-extractor-model@7.28.2(transitive)
- Removed@rushstack/node-core-library@3.61.0(transitive)