From 9a85a95c435968e5bdf6e71192be3ed239fd2205 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 17 May 2022 23:53:42 +0200 Subject: feat: subcommands type-check only local files by default (#14623) This commit changes default mode of type-checking to "local" and adds "--check" flag to following subcommands: - deno bench - deno bundle - deno cache - deno compile - deno eval - deno install - deno test --- cli/tests/testdata/cache/check_local_by_default2.out | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 cli/tests/testdata/cache/check_local_by_default2.out (limited to 'cli/tests/testdata/cache/check_local_by_default2.out') diff --git a/cli/tests/testdata/cache/check_local_by_default2.out b/cli/tests/testdata/cache/check_local_by_default2.out new file mode 100644 index 000000000..1367dc70e --- /dev/null +++ b/cli/tests/testdata/cache/check_local_by_default2.out @@ -0,0 +1,4 @@ +error: TS2322 [ERROR]: Type '12' is not assignable to type '"b"'. +const b: "b" = 12; + ^ + at [WILDCARD]cache/check_local_by_default2.ts:3:7 -- cgit v1.2.3