diff --git a/lib/tsc.js b/lib/tsc.js index 7704b1a2be5..43e93eb73d6 100644 --- a/lib/tsc.js +++ b/lib/tsc.js @@ -69,7 +69,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) { var ts; (function (ts) { ts.versionMajorMinor = "4.6"; - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); var NativeCollections; (function (NativeCollections) { var globals = typeof globalThis !== "undefined" ? globalThis : @@ -96226,7 +96226,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/lib/tsserver.js b/lib/tsserver.js index ff74f351d1b..1e112923bac 100644 --- a/lib/tsserver.js +++ b/lib/tsserver.js @@ -100,7 +100,7 @@ var ts; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); /* @internal */ var Comparison; (function (Comparison) { @@ -116573,7 +116573,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/lib/tsserverlibrary.js b/lib/tsserverlibrary.js index 9290a366108..f802f44368e 100644 --- a/lib/tsserverlibrary.js +++ b/lib/tsserverlibrary.js @@ -294,7 +294,7 @@ var ts; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); /* @internal */ var Comparison; (function (Comparison) { @@ -116767,7 +116767,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/lib/typescript.js b/lib/typescript.js index 89cc0ba3ffb..5e6b1b69c2f 100644 --- a/lib/typescript.js +++ b/lib/typescript.js @@ -294,7 +294,7 @@ var ts; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); /* @internal */ var Comparison; (function (Comparison) { @@ -116767,7 +116767,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/lib/typescriptServices.js b/lib/typescriptServices.js index d1d97fe03d6..3fea7c3ceaf 100644 --- a/lib/typescriptServices.js +++ b/lib/typescriptServices.js @@ -294,7 +294,7 @@ var ts; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); /* @internal */ var Comparison; (function (Comparison) { @@ -116767,7 +116767,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/lib/typingsInstaller.js b/lib/typingsInstaller.js index 67aa6f7336a..4d71671c18a 100644 --- a/lib/typingsInstaller.js +++ b/lib/typingsInstaller.js @@ -89,7 +89,7 @@ var ts; // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - ts.version = "4.6.2"; + ts.version = "".concat(ts.versionMajorMinor, ".2-insiders.20220225"); /* @internal */ var Comparison; (function (Comparison) { @@ -116562,7 +116562,7 @@ var ts; return resolvedRef; } function verifyCompilerOptions() { - var isNightly = ts.stringContains(ts.version, "-dev") || ts.stringContains(ts.version, "-insiders"); + var isNightly = ts.stringContains(ts.version, "-dev"); if (!isNightly) { if (ts.getEmitModuleKind(options) === ts.ModuleKind.Node12) { createOptionValueDiagnostic("module", ts.Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12"); diff --git a/package.json b/package.json index 709da71b59b..58d2a7678a9 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "typescript", "author": "Microsoft Corp.", "homepage": "https://www.typescriptlang.org/", - "version": "4.6.2", + "version": "4.6.2-insiders.20220225", "license": "Apache-2.0", "description": "TypeScript is a language for application scale JavaScript development", "keywords": [ @@ -129,4 +129,4 @@ "volta": { "node": "14.15.5" } -} +} \ No newline at end of file diff --git a/src/compiler/corePublic.ts b/src/compiler/corePublic.ts index 2e0d8a0eeff..137be1a727f 100644 --- a/src/compiler/corePublic.ts +++ b/src/compiler/corePublic.ts @@ -5,7 +5,7 @@ namespace ts { // The following is baselined as a literal template type without intervention /** The version of the TypeScript compiler release */ // eslint-disable-next-line @typescript-eslint/no-inferrable-types - export const version = "4.6.2" as string; + export const version: string = `${versionMajorMinor}.2-insiders.20220225`; /** * Type of objects whose values are all of the same type. diff --git a/src/compiler/program.ts b/src/compiler/program.ts index d8d22046674..4e248281fdb 100644 --- a/src/compiler/program.ts +++ b/src/compiler/program.ts @@ -3266,7 +3266,7 @@ namespace ts { } function verifyCompilerOptions() { - const isNightly = stringContains(version, "-dev") || stringContains(version, "-insiders"); + const isNightly = stringContains(version, "-dev"); if (!isNightly) { if (getEmitModuleKind(options) === ModuleKind.Node12) { createOptionValueDiagnostic("module", Diagnostics.Compiler_option_0_of_value_1_is_unstable_Use_nightly_TypeScript_to_silence_this_error_Try_updating_with_npm_install_D_typescript_next, "module", "node12");