Allow nightly-only flags in -insiders builds (#46829)

This commit is contained in:
Wesley Wigham 2021-11-16 12:53:37 -08:00 committed by GitHub
parent fcdbc932bf
commit 0bf97296d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3160,7 +3160,7 @@ namespace ts {
}
function verifyCompilerOptions() {
const isNightly = stringContains(version, "-dev");
const isNightly = stringContains(version, "-dev") || stringContains(version, "-insiders");
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");