@@ -16,9 +16,9 @@ import {
1616 InternalError
1717} from '@microsoft/node-core-library' ;
1818import {
19- IExtractorConfig ,
19+ IConfigFile ,
2020 IExtractorMessagesConfig
21- } from './IExtractorConfig ' ;
21+ } from './IConfigFile ' ;
2222import { PackageMetadataManager } from '../analyzer/PackageMetadataManager' ;
2323
2424/**
@@ -53,7 +53,7 @@ export interface IExtractorConfigParseConfigObjectOptions {
5353 /**
5454 * An already prepared configuration object as returned by {@link ExtractorConfig.loadJsonFileWithInheritance}.
5555 */
56- configObject : IExtractorConfig ;
56+ configObject : IConfigFile ;
5757
5858 /**
5959 * The absolute path of the file that the `configObject` object was loaded from. This is used for error messages
@@ -126,12 +126,12 @@ export class ExtractorConfig {
126126 */
127127 public static readonly FILENAME : string = 'api-extractor.json' ;
128128
129- private static readonly _defaultConfig : Partial < IExtractorConfig > = JsonFile . load ( path . join ( __dirname ,
129+ private static readonly _defaultConfig : Partial < IConfigFile > = JsonFile . load ( path . join ( __dirname ,
130130 '../schemas/api-extractor-defaults.json' ) ) ;
131131
132132 private static readonly _declarationFileExtensionRegExp : RegExp = / \. d \. t s $ / i;
133133
134- /** {@inheritDoc IExtractorCompilerConfig .rootFolder } */
134+ /** {@inheritDoc IConfigCompiler .rootFolder } */
135135 public readonly rootFolder : string ;
136136
137137 /**
@@ -146,46 +146,46 @@ export class ExtractorConfig {
146146 */
147147 public readonly packageJsonFullPath : string | undefined ;
148148
149- /** {@inheritDoc IExtractorConfig .mainEntryPointFile } */
149+ /** {@inheritDoc IConfigFile .mainEntryPointFile } */
150150 public readonly mainEntryPointFile : string ;
151151
152- /** {@inheritDoc IExtractorCompilerConfig .overrideTsconfig } */
152+ /** {@inheritDoc IConfigCompiler .overrideTsconfig } */
153153 public readonly overrideTsconfig : { } | undefined ;
154154
155- /** {@inheritDoc IExtractorCompilerConfig .skipLibCheck } */
155+ /** {@inheritDoc IConfigCompiler .skipLibCheck } */
156156 public readonly skipLibCheck : boolean ;
157157
158- /** {@inheritDoc IExtractorApiReportConfig .enabled } */
158+ /** {@inheritDoc IConfigApiReport .enabled } */
159159 public readonly apiReportEnabled : boolean ;
160160
161161 /** The `reportFolder` path combined with the `reportFileName`. */
162162 public readonly reportFilePath : string ;
163163 /** The `tempFolder` path combined with the `reportFileName`. */
164164 public readonly tempReportFilePath : string ;
165165
166- /** {@inheritDoc IExtractorDocModelConfig .enabled } */
166+ /** {@inheritDoc IConfigDocModel .enabled } */
167167 public readonly docModelEnabled : boolean ;
168- /** {@inheritDoc IExtractorDocModelConfig .apiJsonFilePath } */
168+ /** {@inheritDoc IConfigDocModel .apiJsonFilePath } */
169169 public readonly apiJsonFilePath : string ;
170170
171- /** {@inheritDoc IExtractorDtsRollupConfig .enabled } */
171+ /** {@inheritDoc IConfigDtsRollup .enabled } */
172172 public readonly rollupEnabled : boolean ;
173- /** {@inheritDoc IExtractorDtsRollupConfig .untrimmedFilePath } */
173+ /** {@inheritDoc IConfigDtsRollup .untrimmedFilePath } */
174174 public readonly untrimmedFilePath : string ;
175- /** {@inheritDoc IExtractorDtsRollupConfig .betaTrimmedFilePath } */
175+ /** {@inheritDoc IConfigDtsRollup .betaTrimmedFilePath } */
176176 public readonly betaTrimmedFilePath : string ;
177- /** {@inheritDoc IExtractorDtsRollupConfig .publicTrimmedFilePath } */
177+ /** {@inheritDoc IConfigDtsRollup .publicTrimmedFilePath } */
178178 public readonly publicTrimmedFilePath : string ;
179179
180- /** {@inheritDoc IExtractorTsdocMetadataConfig .enabled } */
180+ /** {@inheritDoc IConfigTsdocMetadata .enabled } */
181181 public readonly tsdocMetadataEnabled : boolean ;
182- /** {@inheritDoc IExtractorTsdocMetadataConfig .tsdocMetadataFilePath } */
182+ /** {@inheritDoc IConfigTsdocMetadata .tsdocMetadataFilePath } */
183183 public readonly tsdocMetadataFilePath : string ;
184184
185- /** {@inheritDoc IExtractorConfig .messages } */
185+ /** {@inheritDoc IConfigFile .messages } */
186186 public readonly messages : IExtractorMessagesConfig ;
187187
188- /** {@inheritDoc IExtractorConfig .testMode } */
188+ /** {@inheritDoc IConfigFile .testMode } */
189189 public readonly testMode : boolean ;
190190
191191 private constructor ( parameters : IExtractorConfigParameters ) {
@@ -232,7 +232,7 @@ export class ExtractorConfig {
232232 */
233233 public static loadAndParseConfig ( configJsonFilePath : string ) : ExtractorConfig {
234234 const configObjectFullPath : string = path . resolve ( configJsonFilePath ) ;
235- const configObject : IExtractorConfig = ExtractorConfig . loadJsonFileWithInheritance ( configObjectFullPath ) ;
235+ const configObject : IConfigFile = ExtractorConfig . loadJsonFileWithInheritance ( configObjectFullPath ) ;
236236
237237 const packageJsonLookup : PackageJsonLookup = new PackageJsonLookup ( ) ;
238238 const packageJsonFullPath : string | undefined = packageJsonLookup . tryGetPackageJsonFilePathFor (
@@ -257,14 +257,14 @@ export class ExtractorConfig {
257257 * If the "extends" field is present, the referenced file(s) will be merged,
258258 * along with the API Extractor defaults.
259259 */
260- public static loadJsonFileWithInheritance ( jsonFilePath : string ) : IExtractorConfig {
260+ public static loadJsonFileWithInheritance ( jsonFilePath : string ) : IConfigFile {
261261 // Set to keep track of config files which have been processed.
262262 const visitedPaths : Set < string > = new Set < string > ( ) ;
263263
264264 // Get absolute path of config file.
265265 let currentConfigFilePath : string = path . resolve ( process . cwd ( ) , jsonFilePath ) ;
266266
267- let configObject : Partial < IExtractorConfig > = JsonFile . load ( currentConfigFilePath ) ;
267+ let configObject : Partial < IConfigFile > = JsonFile . load ( currentConfigFilePath ) ;
268268
269269 try {
270270 while ( configObject . extends ) {
@@ -293,7 +293,7 @@ export class ExtractorConfig {
293293 }
294294
295295 // Load the extractor config defined in extends property.
296- const baseConfig : IExtractorConfig = JsonFile . load ( currentConfigFilePath ) ;
296+ const baseConfig : IConfigFile = JsonFile . load ( currentConfigFilePath ) ;
297297
298298 // Delete the "extends" field, since we've already expanded it
299299 delete configObject . extends ;
@@ -312,8 +312,8 @@ export class ExtractorConfig {
312312
313313 ExtractorConfig . jsonSchema . validateObject ( configObject , jsonFilePath ) ;
314314
315- // The schema validation should ensure that this object conforms to IExtractorConfig
316- return configObject as IExtractorConfig ;
315+ // The schema validation should ensure that this object conforms to IConfigFile
316+ return configObject as IConfigFile ;
317317 }
318318
319319 /**
@@ -322,7 +322,7 @@ export class ExtractorConfig {
322322 */
323323 public static parseConfigObject ( options : IExtractorConfigParseConfigObjectOptions ) : ExtractorConfig {
324324 const filenameForErrors : string = options . configObjectFullPath || 'the configuration object' ;
325- const configObject : Partial < IExtractorConfig > = options . configObject ;
325+ const configObject : Partial < IConfigFile > = options . configObject ;
326326
327327 if ( options . configObjectFullPath ) {
328328 if ( ! path . isAbsolute ( options . configObjectFullPath ) ) {
0 commit comments