mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:08:51 -06:00
Allow nightly-only flags in -insiders builds (#46829)
This commit is contained in:
parent
fcdbc932bf
commit
0bf97296d6
@ -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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user