Skip to content

Commit fdeea36

Browse files
committed
Added "internalFilename", "previewFilename", and "publicFilename" settings
1 parent 7135795 commit fdeea36

4 files changed

Lines changed: 47 additions & 1 deletion

File tree

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

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,34 @@ export interface IExtractorPackageTypingsConfig {
163163
* The default value is "./dist"
164164
*/
165165
outputFolder?: string;
166+
167+
/**
168+
* Specifies the output filename for an internal release.
169+
*
170+
* @remarks
171+
* The default value is "index-internal.d.ts". This file will contain all definitions that
172+
* are reachable from the entry point.
173+
*/
174+
internalFilename?: string;
175+
176+
/**
177+
* Specifies the output filename for a preview release.
178+
*
179+
* @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+
*/
183+
previewFilename?: string;
184+
185+
/**
186+
* Specifies the output filename for a public release.
187+
*
188+
* @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.
192+
*/
193+
publicFilename?: string;
166194
}
167195

168196
/**

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
"packageTypings": {
2626
"enabled": false,
27-
"outputFolder": "./dist"
27+
"outputFolder": "./dist",
28+
"internalFilename": "index-internal.d.ts",
29+
"previewFilename": "index-preview.d.ts",
30+
"publicFilename": "index-public.d.ts"
2831
}
2932
}

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,18 @@
126126
"outputFolder": {
127127
"description": "Specifies where the *.d.ts files should be written. The default value is \"./dist\"",
128128
"type": "string"
129+
},
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.",
132+
"type": "string"
133+
},
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",
136+
"type": "string"
137+
},
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.",
140+
"type": "string"
129141
}
130142
},
131143
"required": [ "enabled" ],

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ interface IExtractorOptions {
191191
// @beta
192192
interface IExtractorPackageTypingsConfig {
193193
enabled: boolean;
194+
internalFilename?: string;
194195
outputFolder?: string;
196+
previewFilename?: string;
197+
publicFilename?: string;
195198
}
196199

197200
// @public

0 commit comments

Comments
 (0)