From 751bb45a0a4ca4ab3baf5e5037c0b10f0430aeb6 Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Wed, 23 Sep 2020 11:39:20 +1000 Subject: fix: ignore fileExists in tsc host (#7635) Fixes #7630 --- cli/tests/tsc/a.js | 2 ++ cli/tests/tsc/d.ts | 3 +++ cli/tests/tsc/node_modules/b.js | 2 ++ cli/tests/tsc/node_modules/c.js | 1 + cli/tests/tsc/test.js | 4 ++++ 5 files changed, 12 insertions(+) create mode 100644 cli/tests/tsc/a.js create mode 100644 cli/tests/tsc/d.ts create mode 100644 cli/tests/tsc/node_modules/b.js create mode 100644 cli/tests/tsc/node_modules/c.js create mode 100644 cli/tests/tsc/test.js (limited to 'cli/tests/tsc') diff --git a/cli/tests/tsc/a.js b/cli/tests/tsc/a.js new file mode 100644 index 000000000..5a7b3ff93 --- /dev/null +++ b/cli/tests/tsc/a.js @@ -0,0 +1,2 @@ +import { v4 } from "./d.ts"; +export function a() {} diff --git a/cli/tests/tsc/d.ts b/cli/tests/tsc/d.ts new file mode 100644 index 000000000..3c74b8c83 --- /dev/null +++ b/cli/tests/tsc/d.ts @@ -0,0 +1,3 @@ +export function v4() { + return "hello"; +} diff --git a/cli/tests/tsc/node_modules/b.js b/cli/tests/tsc/node_modules/b.js new file mode 100644 index 000000000..191660935 --- /dev/null +++ b/cli/tests/tsc/node_modules/b.js @@ -0,0 +1,2 @@ +import c from "./c.js"; +export { c }; diff --git a/cli/tests/tsc/node_modules/c.js b/cli/tests/tsc/node_modules/c.js new file mode 100644 index 000000000..cff71c44a --- /dev/null +++ b/cli/tests/tsc/node_modules/c.js @@ -0,0 +1 @@ +export default function c() {} diff --git a/cli/tests/tsc/test.js b/cli/tests/tsc/test.js new file mode 100644 index 000000000..b7f46b351 --- /dev/null +++ b/cli/tests/tsc/test.js @@ -0,0 +1,4 @@ +import { a } from "./a.js"; +import { c } from "./node_modules/b.js"; + +console.log("hello"); -- cgit v1.2.3