From 07b634232fdedd826a6f9e825c11d0abc07784d5 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 26 Jul 2024 13:52:23 -0700 Subject: [PATCH] Bring back exported defaultInitCompilerOptions --- src/compiler/commandLineParser.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 1376455494303..1775bce71232e 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -259,6 +259,8 @@ export const libs = libEntries.map(entry => entry[0]); export const libMap = new Map(libEntries); // Watch related options + +// Do not delete this without updating the website's tsconfig generation. /** @internal */ export const optionsForWatch: CommandLineOption[] = [ { @@ -1619,6 +1621,7 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [ }, ]; +// Do not delete this without updating the website's tsconfig generation. /** @internal */ export const optionDeclarations: CommandLineOption[] = [ ...commonOptionsWithBuild, @@ -1702,6 +1705,7 @@ export const buildOpts: CommandLineOption[] = [ ...optionsForBuild, ]; +// Do not delete this without updating the website's tsconfig generation. /** @internal */ export const typeAcquisitionDeclarations: CommandLineOption[] = [ { @@ -1764,7 +1768,9 @@ const compilerOptionsAlternateMode: AlternateModeDiagnostics = { getOptionsNameMap: getBuildOptionsNameMap, }; -const defaultInitCompilerOptions: CompilerOptions = { +// Do not delete this without updating the website's tsconfig generation. +/** @internal @knipignore */ +export const defaultInitCompilerOptions: CompilerOptions = { module: ModuleKind.CommonJS, target: ScriptTarget.ES2016, strict: true,