Skip to content

Commit a3fc17b

Browse files
committed
CleanResolutions to remove resolutions from tsbuildinfo file
1 parent db50a13 commit a3fc17b

File tree

7 files changed

+20
-0
lines changed

7 files changed

+20
-0
lines changed

src/compiler/commandLineParser.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,13 @@ namespace ts {
242242
category: Diagnostics.Advanced_Options,
243243
description: Diagnostics.The_locale_used_when_displaying_messages_to_the_user_e_g_en_us
244244
},
245+
{
246+
name: "cleanResolutions",
247+
type: "boolean",
248+
isCommandLineOnly: true,
249+
category: Diagnostics.Advanced_Options,
250+
description: Diagnostics.Save_module_and_type_reference_directive_resolution_information_in_tsbuildinfo_file,
251+
},
245252
];
246253

247254
/* @internal */

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4540,6 +4540,10 @@
45404540
"category": "Message",
45414541
"code": 6239
45424542
},
4543+
"Clean module and type reference directive resolution information in '.tsbuildinfo' file.": {
4544+
"category": "Message",
4545+
"code": 6240
4546+
},
45434547

45444548
"Projects to reference": {
45454549
"category": "Message",

src/compiler/tsbuildPublic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ namespace ts {
1717
/*@internal*/ pretty?: boolean;
1818
incremental?: boolean;
1919
assumeChangesOnlyAffectDirectDependencies?: boolean;
20+
/*@internal*/ cleanResolutions?: boolean;
2021

2122
traceResolution?: boolean;
2223
/* @internal */ diagnostics?: boolean;

src/compiler/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5874,6 +5874,7 @@ namespace ts {
58745874
incremental?: boolean;
58755875
tsBuildInfoFile?: string;
58765876
persistResolutions?: string;
5877+
cleanResolutions?: boolean;
58775878
removeComments?: boolean;
58785879
rootDir?: string;
58795880
rootDirs?: string[];

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,7 @@ declare namespace ts {
28512851
incremental?: boolean;
28522852
tsBuildInfoFile?: string;
28532853
persistResolutions?: string;
2854+
cleanResolutions?: boolean;
28542855
removeComments?: boolean;
28552856
rootDir?: string;
28562857
rootDirs?: string[];

tests/baselines/reference/api/typescript.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2851,6 +2851,7 @@ declare namespace ts {
28512851
incremental?: boolean;
28522852
tsBuildInfoFile?: string;
28532853
persistResolutions?: string;
2854+
cleanResolutions?: boolean;
28542855
removeComments?: boolean;
28552856
rootDir?: string;
28562857
rootDirs?: string[];
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"cleanResolutions": true
4+
}
5+
}

0 commit comments

Comments
 (0)