@@ -17,7 +17,7 @@ import { ExtractorContext } from '../ExtractorContext';
1717import { ILogger } from './ILogger' ;
1818import { ApiJsonGenerator } from '../generators/ApiJsonGenerator' ;
1919import { ApiFileGenerator } from '../generators/ApiFileGenerator' ;
20- import { PackageTypingsGenerator , PackageTypingsDtsKind } from '../generators/packageTypings/PackageTypingsGenerator ' ;
20+ import { DtsRollupGenerator , DtsRollupKind } from '../generators/dtsRollup/DtsRollupGenerator ' ;
2121import { MonitoredLogger } from './MonitoredLogger' ;
2222
2323/**
@@ -253,7 +253,7 @@ export class Extractor {
253253 // This helps strict-null-checks to understand that _applyConfigDefaults() eliminated
254254 // any undefined members
255255 if ( ! ( this . actualConfig . policies && this . actualConfig . validationRules
256- && this . actualConfig . apiJsonFile && this . actualConfig . apiReviewFile && this . actualConfig . packageTypings ) ) {
256+ && this . actualConfig . apiJsonFile && this . actualConfig . apiReviewFile && this . actualConfig . dtsRollup ) ) {
257257 throw new Error ( 'The configuration object wasn\'t normalized properly' ) ;
258258 }
259259
@@ -340,21 +340,21 @@ export class Extractor {
340340 }
341341 }
342342
343- if ( this . actualConfig . packageTypings . enabled ) {
344- const packageTypingsGenerator : PackageTypingsGenerator = new PackageTypingsGenerator ( context ) ;
345- packageTypingsGenerator . analyze ( ) ;
343+ if ( this . actualConfig . dtsRollup . enabled ) {
344+ const dtsRollupGenerator : DtsRollupGenerator = new DtsRollupGenerator ( context ) ;
345+ dtsRollupGenerator . analyze ( ) ;
346346
347- this . _generateTypingsFile ( packageTypingsGenerator ,
348- this . actualConfig . packageTypings . dtsFilePathForPublic ! ,
349- PackageTypingsDtsKind . PublicRelease ) ;
347+ this . _generateTypingsFile ( dtsRollupGenerator ,
348+ this . actualConfig . dtsRollup . dtsFilePathForPublic ! ,
349+ DtsRollupKind . PublicRelease ) ;
350350
351- this . _generateTypingsFile ( packageTypingsGenerator ,
352- this . actualConfig . packageTypings . dtsFilePathForPreview ! ,
353- PackageTypingsDtsKind . PreviewRelease ) ;
351+ this . _generateTypingsFile ( dtsRollupGenerator ,
352+ this . actualConfig . dtsRollup . dtsFilePathForPreview ! ,
353+ DtsRollupKind . PreviewRelease ) ;
354354
355- this . _generateTypingsFile ( packageTypingsGenerator ,
356- this . actualConfig . packageTypings . dtsFilePathForInternal ! ,
357- PackageTypingsDtsKind . InternalRelease ) ;
355+ this . _generateTypingsFile ( dtsRollupGenerator ,
356+ this . actualConfig . dtsRollup . dtsFilePathForInternal ! ,
357+ DtsRollupKind . InternalRelease ) ;
358358 }
359359
360360 if ( this . _localBuild ) {
@@ -366,16 +366,16 @@ export class Extractor {
366366 }
367367 }
368368
369- private _generateTypingsFile ( packageTypingsGenerator : PackageTypingsGenerator ,
370- dtsFilePath : string , dtsKind : PackageTypingsDtsKind ) : void {
369+ private _generateTypingsFile ( dtsRollupGenerator : DtsRollupGenerator ,
370+ dtsFilePath : string , dtsKind : DtsRollupKind ) : void {
371371 const dtsFilename : string = path . resolve ( this . _absoluteRootFolder ,
372- this . actualConfig . packageTypings ! . outputFolder , dtsFilePath ) ;
372+ this . actualConfig . dtsRollup ! . outputFolder , dtsFilePath ) ;
373373
374374 this . _monitoredLogger . logVerbose ( `Writing package typings: ${ dtsFilename } ` ) ;
375375
376376 fsx . mkdirsSync ( path . dirname ( dtsFilename ) ) ;
377377
378- packageTypingsGenerator . writeTypingsFile ( dtsFilename , dtsKind ) ;
378+ dtsRollupGenerator . writeTypingsFile ( dtsFilename , dtsKind ) ;
379379}
380380
381381 private _getShortFilePath ( absolutePath : string ) : string {
0 commit comments