summaryrefslogtreecommitdiff
path: root/cli/tests/subdir
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-11-08 07:00:42 +1100
committerGitHub <noreply@github.com>2020-11-08 07:00:42 +1100
commite9edc05bed299a3e97cf9a8136e6d790f5fc3f14 (patch)
tree325229ac544bfeb48caeb577354d6cfcff3d8630 /cli/tests/subdir
parent37b7024a8feee04a3fd9e2705c7858f53f2f44d0 (diff)
fix(cli): ensure that transitory dependencies are emitted (#8275)
Fixes #8111
Diffstat (limited to 'cli/tests/subdir')
-rw-r--r--cli/tests/subdir/emittable.d.ts1
-rw-r--r--cli/tests/subdir/polyfill.ts10
2 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/subdir/emittable.d.ts b/cli/tests/subdir/emittable.d.ts
new file mode 100644
index 000000000..425b80f24
--- /dev/null
+++ b/cli/tests/subdir/emittable.d.ts
@@ -0,0 +1 @@
+export const a: string;
diff --git a/cli/tests/subdir/polyfill.ts b/cli/tests/subdir/polyfill.ts
new file mode 100644
index 000000000..e1cd923cb
--- /dev/null
+++ b/cli/tests/subdir/polyfill.ts
@@ -0,0 +1,10 @@
+declare global {
+ const polyfill: () => void;
+}
+
+export {};
+
+// deno-lint-ignore no-explicit-any
+(globalThis as any).polyfill = () => {
+ console.log("polyfill");
+};