@microsoft/api-extractor
Advanced tools
Comparing version 7.38.3 to 7.38.4
@@ -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.4", | ||
"description": "Analyze the exported API for a TypeScript library and generate reviews, documentation, and .d.ts rollups", | ||
@@ -44,5 +44,5 @@ "keywords": [ | ||
"@microsoft/api-extractor-model": "7.28.2", | ||
"@rushstack/ts-command-line": "4.17.1", | ||
"@rushstack/rig-package": "0.5.1", | ||
"@rushstack/node-core-library": "3.61.0", | ||
"@rushstack/rig-package": "0.5.1" | ||
"@rushstack/ts-command-line": "4.17.1" | ||
}, | ||
@@ -49,0 +49,0 @@ "devDependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1568128
15543