From a34ed568e98d2f10f699f707841cab96847d3ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Thu, 14 Jul 2022 14:40:47 +0000 Subject: fix(cli): expand tsc roots when using checkJs (#15164) A JS file can still point to a TS file, so we need to expand the roots in the checkJs case too. Fixes: #15163 --- cli/tests/testdata/run/check_js_points_to_ts/test.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cli/tests/testdata/run/check_js_points_to_ts/test.js (limited to 'cli/tests/testdata/run/check_js_points_to_ts/test.js') diff --git a/cli/tests/testdata/run/check_js_points_to_ts/test.js b/cli/tests/testdata/run/check_js_points_to_ts/test.js new file mode 100644 index 000000000..00d894451 --- /dev/null +++ b/cli/tests/testdata/run/check_js_points_to_ts/test.js @@ -0,0 +1,3 @@ +// @deno-types="./foo.d.ts" +import { foo } from "./foo.js"; +foo(); -- cgit v1.2.3