Skip to content

Commit dbb42ea

Browse files
committed
Clarify IExtractorPackageTypingsConfig member names
1 parent f02de8f commit dbb42ea

5 files changed

Lines changed: 28 additions & 24 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export class Extractor {
284284
const packageTypingsGenerator: PackageTypingsGenerator = new PackageTypingsGenerator(context);
285285

286286
const dtsFilename: string = path.resolve(this._absoluteRootFolder,
287-
this._actualConfig.packageTypings.outputFolder, this._actualConfig.packageTypings.internalFilename);
287+
this._actualConfig.packageTypings.outputFolder, this._actualConfig.packageTypings.dtsFilePathForInternal);
288288

289289
this._monitoredLogger.logVerbose(`Writing package typings: ${dtsFilename}`);
290290

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

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -165,32 +165,36 @@ export interface IExtractorPackageTypingsConfig {
165165
outputFolder?: string;
166166

167167
/**
168-
* Specifies the output filename for an internal release.
168+
* Specifies the *.d.ts file path used for an internal release.
169+
* The default value is "index-internal.d.ts".
169170
*
170171
* @remarks
171-
* The default value is "index-internal.d.ts". This file will contain all definitions that
172-
* are reachable from the entry point.
172+
* If the path is not an absolute path, it will be resolved relative to the outputFolder.
173+
* This output file will contain all definitions that are reachable from the entry point.
173174
*/
174-
internalFilename?: string;
175+
dtsFilePathForInternal?: string;
175176

176177
/**
177178
* Specifies the output filename for a preview release.
179+
* The default value is "index-preview.d.ts".
178180
*
179181
* @remarks
180-
* The default value is "index-preview.d.ts". This file will contain all definitions that
181-
* are reachable from the entry point, except definitions marked as \@alpha or \@internal.
182+
* If the path is not an absolute path, it will be resolved relative to the outputFolder.
183+
* This output file will contain all definitions that are reachable from the entry point,
184+
* except definitions marked as \@alpha or \@internal.
182185
*/
183-
previewFilename?: string;
186+
dtsFilePathForPreview?: string;
184187

185188
/**
186189
* Specifies the output filename for a public release.
190+
* The default value is "index-public.d.ts".
187191
*
188192
* @remarks
189-
* The default value is "index-public.d.ts". This file will contain all definitions that
190-
* are reachable from the entry point, except definitions marked as \@beta, \@alpha,
191-
* or \@internal.
193+
* If the path is not an absolute path, it will be resolved relative to the outputFolder.
194+
* This output file will contain all definitions that are reachable from the entry point,
195+
* except definitions marked as \@beta, \@alpha, or \@internal.
192196
*/
193-
publicFilename?: string;
197+
dtsFilePathForPublic?: string;
194198
}
195199

196200
/**

‎apps/api-extractor/src/extractor/api-extractor-defaults.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"packageTypings": {
2626
"enabled": false,
2727
"outputFolder": "./dist",
28-
"internalFilename": "index-internal.d.ts",
29-
"previewFilename": "index-preview.d.ts",
30-
"publicFilename": "index-public.d.ts"
28+
"dtsFilePathForInternal": "index-internal.d.ts",
29+
"dtsFilePathForPreview": "index-preview.d.ts",
30+
"dtsFilePathForPublic": "index-public.d.ts"
3131
}
3232
}

‎apps/api-extractor/src/extractor/api-extractor.schema.json‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,16 @@
127127
"description": "Specifies where the *.d.ts files should be written. The default value is \"./dist\"",
128128
"type": "string"
129129
},
130-
"internalFilename": {
131-
"description": "Specifies the output filename for an internal release. The default value is \"index-internal.d.ts\". This file will contain all definitions that are reachable from the entry point.",
130+
"dtsFilePathForInternal": {
131+
"description": "Specifies the output filename for an internal release. The default value is \"index-internal.d.ts\". If the path is not an absolute path, it will be resolved relative to the outputFolder. This file will contain all definitions that are reachable from the entry point.",
132132
"type": "string"
133133
},
134-
"previewFilename": {
135-
"description": "Specifies the output filename for a preview release. The default value is \"index-preview.d.ts\". This file will contain all definitions that are reachable from the entry point, except definitions marked as @alpha or @internal",
134+
"dtsFilePathForPreview": {
135+
"description": "Specifies the output filename for a preview release. The default value is \"index-preview.d.ts\". If the path is not an absolute path, it will be resolved relative to the outputFolder. This file will contain all definitions that are reachable from the entry point, except definitions marked as @alpha or @internal",
136136
"type": "string"
137137
},
138-
"publicFilename": {
139-
"description": "Specifies the output filename for a public release. The default value is \"index-public.d.ts\". This file will contain all definitions that are reachable from the entry point, except definitions marked as @beta, @alpha, or @internal.",
138+
"dtsFilePathForPublic": {
139+
"description": "Specifies the output filename for a public release. The default value is \"index-public.d.ts\". If the path is not an absolute path, it will be resolved relative to the outputFolder. This file will contain all definitions that are reachable from the entry point, except definitions marked as @beta, @alpha, or @internal.",
140140
"type": "string"
141141
}
142142
},

‎common/reviews/api/api-extractor.api.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,11 @@ interface IExtractorOptions {
190190

191191
// @beta
192192
interface IExtractorPackageTypingsConfig {
193+
dtsFilePathForInternal?: string;
194+
dtsFilePathForPreview?: string;
195+
dtsFilePathForPublic?: string;
193196
enabled: boolean;
194-
internalFilename?: string;
195197
outputFolder?: string;
196-
previewFilename?: string;
197-
publicFilename?: string;
198198
}
199199

200200
// @public

0 commit comments

Comments
 (0)