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 authored and GitHub committed 2022-03-22 10:35:47 -07:00
1 parent 45c1e58809
commit 50a4b92bca
17 files changed
+19 -18

No files matched your search

+3 -2
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":