1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00

Remove the DENO_FUTURE_CHECK warning (#14320)

It has good intentions, but it is a really terrible user experience. As
such we shouldn't print this warning.
This commit is contained in:
Luca Casonato 2022-04-19 17:08:23 +02:00 committed by GitHub
parent 1c05e41f37
commit 803499886b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View file

@ -1150,11 +1150,6 @@ async fn run_command(
flags: Flags,
run_flags: RunFlags,
) -> Result<i32, AnyError> {
if !flags.has_check_flag && flags.type_check_mode == TypeCheckMode::All {
info!("{} In future releases `deno run` will not automatically type check without the --check flag.
To opt into this new behavior now, specify DENO_FUTURE_CHECK=1.", colors::yellow("Warning"));
}
// Read script content from stdin
if run_flags.script == "-" {
return run_from_stdin(flags).await;

View file

@ -1,3 +1 @@
Warning In future releases `deno run` will not automatically type check without the --check flag.
To opt into this new behavior now, specify DENO_FUTURE_CHECK=1.
Check [WILDCARD]/future_check.ts