Skip to content

Commit

Permalink
Remove change in behavior for internal options, add noCheck to intern…
Browse files Browse the repository at this point in the history
…al set
  • Loading branch information
weswigham committed Apr 26, 2024
1 parent ed93ad4 commit d5b24f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions src/compiler/commandLineParser.ts
Expand Up @@ -782,6 +782,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
defaultValueDescription: false,
affectsSemanticDiagnostics: true,
affectsBuildInfo: true,
internal: true,
extraValidation() {
return [Diagnostics.Unknown_compiler_option_0, "noCheck"];
},
Expand Down
2 changes: 0 additions & 2 deletions src/compiler/emitter.ts
Expand Up @@ -189,7 +189,6 @@ import {
InferTypeNode,
InterfaceDeclaration,
InternalEmitFlags,
internalOptionDeclarations,
IntersectionTypeNode,
isAccessExpression,
isArray,
Expand Down Expand Up @@ -479,7 +478,6 @@ export function forEachEmittedFile<T>(
}

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

0 comments on commit d5b24f8

Please sign in to comment.