fix(48053) Description of tsBuildInfoFile is misleading in generated tsconfig.json (#48072)

* add check for path default value

* fix wrong tsBuildInfoFile description

* updated files to file
This commit is contained in:
Pablo Sabater Jiménez
2022-03-22 18:35:47 +01:00
committed by GitHub
parent 45c1e58809
commit 50a4b92bca
17 changed files with 19 additions and 18 deletions

View File

@@ -568,7 +568,7 @@ namespace ts {
category: Diagnostics.Projects,
transpileOptionValue: undefined,
defaultValueDescription: ".tsbuildinfo",
description: Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files,
description: Diagnostics.Specify_the_path_to_tsbuildinfo_incremental_compilation_file,
},
{
name: "removeComments",
@@ -3635,7 +3635,8 @@ namespace ts {
case "boolean":
return true;
case "string":
return option.isFilePath ? "./" : "";
const defaultValue = option.defaultValueDescription;
return option.isFilePath ? `./${defaultValue && typeof defaultValue === "string" ? defaultValue : ""}` : "";
case "list":
return [];
case "object":

View File

@@ -5693,7 +5693,7 @@
"category": "Message",
"code": 6706
},
"Specify the folder for .tsbuildinfo incremental compilation files.": {
"Specify the path to .tsbuildinfo incremental compilation file.": {
"category": "Message",
"code": 6707
},