mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 12:53:27 -05:00
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:
committed by
GitHub
parent
45c1e58809
commit
50a4b92bca
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user