mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-04-13 18:00:32 -05:00
Deprecate --outFile (#62981)
This commit is contained in:
@@ -4484,7 +4484,7 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
|
||||
createDeprecatedDiagnostic("charset");
|
||||
}
|
||||
if (options.out) {
|
||||
createDeprecatedDiagnostic("out", /*value*/ undefined, "outFile");
|
||||
createDeprecatedDiagnostic("out");
|
||||
}
|
||||
if (options.importsNotUsedAsValues) {
|
||||
createDeprecatedDiagnostic("importsNotUsedAsValues", /*value*/ undefined, "verbatimModuleSyntax");
|
||||
@@ -4510,6 +4510,9 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
|
||||
if (options.allowSyntheticDefaultImports === false) {
|
||||
createDeprecatedDiagnostic("allowSyntheticDefaultImports", "false", /*useInstead*/ undefined, /*related*/ undefined);
|
||||
}
|
||||
if (options.outFile) {
|
||||
createDeprecatedDiagnostic("outFile");
|
||||
}
|
||||
if (options.module === ModuleKind.None || options.module === ModuleKind.AMD || options.module === ModuleKind.UMD || options.module === ModuleKind.System) {
|
||||
createDeprecatedDiagnostic("module", ModuleKind[options.module], /*useInstead*/ undefined, /*related*/ undefined);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user