Skip to content

Commit 059deab

Browse files
committed
Renamed "DtsRollupKind.PreviewRelease" to match the new model
1 parent 208e31d commit 059deab

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎apps/api-extractor/src/extractor/Extractor.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ export class Extractor {
402402

403403
this._generateTypingsFile(dtsRollupGenerator,
404404
path.resolve(context.packageFolder, dtsRollup.publishFolderForBeta!, mainDtsRollupPath),
405-
DtsRollupKind.PreviewRelease);
405+
DtsRollupKind.BetaRelease);
406406

407407
this._generateTypingsFile(dtsRollupGenerator,
408408
path.resolve(context.packageFolder, dtsRollup.publishFolderForInternal!, mainDtsRollupPath),

‎apps/api-extractor/src/generators/dtsRollup/DtsRollupGenerator.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { SymbolAnalyzer } from './SymbolAnalyzer';
2525
*/
2626
export enum DtsRollupKind {
2727
/**
28-
* Generate a *.d.ts file for an internal release.
28+
* Generate a *.d.ts file for an internal release, or for the trimming=false mode.
2929
* This output file will contain all definitions that are reachable from the entry point.
3030
*/
3131
InternalRelease,
@@ -35,7 +35,7 @@ export enum DtsRollupKind {
3535
* This output file will contain all definitions that are reachable from the entry point,
3636
* except definitions marked as \@alpha or \@internal.
3737
*/
38-
PreviewRelease,
38+
BetaRelease,
3939

4040
/**
4141
* Generate a *.d.ts file for a public release.
@@ -420,7 +420,7 @@ export class DtsRollupGenerator {
420420
switch (dtsKind) {
421421
case DtsRollupKind.InternalRelease:
422422
return true;
423-
case DtsRollupKind.PreviewRelease:
423+
case DtsRollupKind.BetaRelease:
424424
// NOTE: If the release tag is "None", then we don't have enough information to trim it
425425
return releaseTag === ReleaseTag.Beta || releaseTag === ReleaseTag.Public || releaseTag === ReleaseTag.None;
426426
case DtsRollupKind.PublicRelease:

0 commit comments

Comments
 (0)