Fixes the tests that got disabled when generating config set es2016 expecting to find libFile and remove incorrect affects flag from listFilesOnly (#51243)

* Fix the existing test

* Remove affectsEmit from listFilesOnly
This commit is contained in:
Sheetal Nandi
2022-10-31 10:15:19 -07:00
committed by GitHub
parent 18f559faf9
commit cfa55f1c2d
11 changed files with 282 additions and 1080 deletions
+4 -5
View File
@@ -436,9 +436,6 @@ namespace ts {
name: "listFilesOnly",
type: "boolean",
category: Diagnostics.Command_line_Options,
affectsSemanticDiagnostics: true,
affectsEmit: true,
affectsMultiFileEmitBuildInfo: true,
isCommandLineOnly: true,
description: Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,
defaultValueDescription: false,
@@ -2411,7 +2408,8 @@ namespace ts {
return config;
}
function optionMapToObject(optionMap: ESMap<string, CompilerOptionsValue>): object {
/*@internal*/
export function optionMapToObject(optionMap: ESMap<string, CompilerOptionsValue>): object {
return {
...arrayFrom(optionMap.entries()).reduce((prev, cur) => ({ ...prev, [cur[0]]: cur[1] }), {}),
};
@@ -2464,7 +2462,8 @@ namespace ts {
});
}
function serializeCompilerOptions(
/* @internal */
export function serializeCompilerOptions(
options: CompilerOptions,
pathOptions?: { configFilePath: string, useCaseSensitiveFileNames: boolean }
): ESMap<string, CompilerOptionsValue> {