Skip to content

Commit d5b24f8

Browse files
committed
Remove change in behavior for internal options, add noCheck to internal set
1 parent ed93ad4 commit d5b24f8

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
782782
defaultValueDescription: false,
783783
affectsSemanticDiagnostics: true,
784784
affectsBuildInfo: true,
785+
internal: true,
785786
extraValidation() {
786787
return [Diagnostics.Unknown_compiler_option_0, "noCheck"];
787788
},

src/compiler/emitter.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,6 @@ import {
189189
InferTypeNode,
190190
InterfaceDeclaration,
191191
InternalEmitFlags,
192-
internalOptionDeclarations,
193192
IntersectionTypeNode,
194193
isAccessExpression,
195194
isArray,
@@ -479,7 +478,6 @@ export function forEachEmittedFile<T>(
479478
}
480479

481480
export function getTsBuildInfoEmitOutputFilePath(options: CompilerOptions) {
482-
if (some(internalOptionDeclarations, d => hasProperty(options, d.name))) return undefined; // disable buildinfo if an internal option is set
483481
const configFile = options.configFilePath;
484482
if (!isIncrementalCompilation(options)) return undefined;
485483
if (options.tsBuildInfoFile) return options.tsBuildInfoFile;

0 commit comments

Comments
 (0)