X Tutup
Skip to content

Commit 9ba1d36

Browse files
committed
Add tsconfigFilePath to api-extractor-defaults.json and api-extractor.schema.json and IConfigFile
1 parent 8a89f30 commit 9ba1d36

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

apps/api-extractor/src/api/IConfigFile.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@ import { ExtractorLogLevel } from './ExtractorLogLevel';
1212
* @public
1313
*/
1414
export interface IConfigCompiler {
15+
/**
16+
* Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project.
17+
*
18+
* @remarks
19+
* The path is resolved relative to the folder of the config file that contains the setting; to change this,
20+
* prepend a folder token such as `<projectFolder>`.
21+
*
22+
* Note: This setting will be ignored if `overrideTsconfig` is used.
23+
*/
24+
tsconfigFilePath?: string;
1525

1626
/**
1727
* Provides already parsed tsconfig.json contents.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"projectFolder": "<lookup>",
55

66
"compiler": {
7+
"tsconfigFilePath": "<projectFolder>/tsconfig.json",
78
"skipLibCheck": false
89
},
910

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
"description": "Determines how the TypeScript compiler engine will be invoked by API Extractor.",
2828
"type": "object",
2929
"properties": {
30+
"tsconfigFilePath": {
31+
"description": " Specifies the path to the tsconfig.json file to be used by API Extractor when analyzing the project. The path is resolved relative to the folder of the config file that contains the setting; to change this, prepend a folder token such as \"<projectFolder>\". Note: This setting will be ignored if \"overrideTsconfig\" is used.",
32+
"type": "string"
33+
},
3034
"overrideTsconfig": {
3135
"description": "Provides already parsed tsconfig.json contents conforming to the TypeScript tsconfig schema: http://json.schemastore.org/tsconfig If omitted, then the tsconfig.json file will be read from the \"projectFolder\".",
3236
"type": "object"

0 commit comments

Comments
 (0)
X Tutup