summaryrefslogtreecommitdiff
path: root/tests/registry/jsr
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-23 15:01:45 -0700
committerGitHub <noreply@github.com>2024-10-23 15:01:45 -0700
commit69e1d7a4edb45c8b4cb15f64ee89cec8a693be5e (patch)
tree026eb8726df9b3da5cdcff6fedb28a9512d8b2c8 /tests/registry/jsr
parent92ed4d38dbef98b9353d6dd6d96abb400be56f9f (diff)
fix(install): cache type only module deps in `deno install` (#26497)
Fixes https://github.com/denoland/deno/issues/26180.
Diffstat (limited to 'tests/registry/jsr')
-rw-r--r--tests/registry/jsr/@denotest/type-only-import/1.0.0/foo.ts3
-rw-r--r--tests/registry/jsr/@denotest/type-only-import/1.0.0/mod.ts3
-rw-r--r--tests/registry/jsr/@denotest/type-only-import/1.0.0_meta.json5
-rw-r--r--tests/registry/jsr/@denotest/type-only-import/meta.json5
4 files changed, 16 insertions, 0 deletions
diff --git a/tests/registry/jsr/@denotest/type-only-import/1.0.0/foo.ts b/tests/registry/jsr/@denotest/type-only-import/1.0.0/foo.ts
new file mode 100644
index 000000000..4e09512c0
--- /dev/null
+++ b/tests/registry/jsr/@denotest/type-only-import/1.0.0/foo.ts
@@ -0,0 +1,3 @@
+export interface Foo {
+ bar: string;
+} \ No newline at end of file
diff --git a/tests/registry/jsr/@denotest/type-only-import/1.0.0/mod.ts b/tests/registry/jsr/@denotest/type-only-import/1.0.0/mod.ts
new file mode 100644
index 000000000..093a57d8a
--- /dev/null
+++ b/tests/registry/jsr/@denotest/type-only-import/1.0.0/mod.ts
@@ -0,0 +1,3 @@
+import type { Foo } from "./foo.ts";
+
+export const foo: Foo = { bar: "foo" }; \ No newline at end of file
diff --git a/tests/registry/jsr/@denotest/type-only-import/1.0.0_meta.json b/tests/registry/jsr/@denotest/type-only-import/1.0.0_meta.json
new file mode 100644
index 000000000..631a18d0e
--- /dev/null
+++ b/tests/registry/jsr/@denotest/type-only-import/1.0.0_meta.json
@@ -0,0 +1,5 @@
+{
+ "exports": {
+ ".": "./mod.ts"
+ }
+}
diff --git a/tests/registry/jsr/@denotest/type-only-import/meta.json b/tests/registry/jsr/@denotest/type-only-import/meta.json
new file mode 100644
index 000000000..02601e4d0
--- /dev/null
+++ b/tests/registry/jsr/@denotest/type-only-import/meta.json
@@ -0,0 +1,5 @@
+{
+ "versions": {
+ "1.0.0": {}
+ }
+}