mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 21:06:50 -05:00
While writing tsbuildinfo sort the properties of compiler options to make sure they stay same if nothing changes. (#43601)
Fixes #43571
This commit is contained in:
@@ -828,14 +828,12 @@ namespace ts {
|
||||
const result: CompilerOptions = {};
|
||||
const { optionsNameMap } = getOptionsNameMap();
|
||||
|
||||
for (const name in options) {
|
||||
if (hasProperty(options, name)) {
|
||||
result[name] = convertToReusableCompilerOptionValue(
|
||||
optionsNameMap.get(name.toLowerCase()),
|
||||
options[name] as CompilerOptionsValue,
|
||||
relativeToBuildInfo
|
||||
);
|
||||
}
|
||||
for (const name of getOwnKeys(options).sort(compareStringsCaseSensitive)) {
|
||||
result[name] = convertToReusableCompilerOptionValue(
|
||||
optionsNameMap.get(name.toLowerCase()),
|
||||
options[name] as CompilerOptionsValue,
|
||||
relativeToBuildInfo
|
||||
);
|
||||
}
|
||||
if (result.configFilePath) {
|
||||
result.configFilePath = relativeToBuildInfo(result.configFilePath);
|
||||
|
||||
Reference in New Issue
Block a user