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:
parent
1c05e41f37
commit
803499886b
2 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
|
|
2
cli/tests/testdata/future_check1.out
vendored
2
cli/tests/testdata/future_check1.out
vendored
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue