Skip to content

Commit b568e53

Browse files
weswighammprobst
authored andcommitted
Allow nightly-only flags in -insiders builds (microsoft#46829)
1 parent 586ac95 commit b568e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compiler/program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3160,7 +3160,7 @@ namespace ts {
31603160
}
31613161

31623162
function verifyCompilerOptions() {
3163-
const isNightly = stringContains(version, "-dev");
3163+
const isNightly = stringContains(version, "-dev") || stringContains(version, "-insiders");
31643164
if (!isNightly) {
31653165
if (getEmitModuleKind(options) === ModuleKind.Node12) {
31663166
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");

0 commit comments

Comments
 (0)