summaryrefslogtreecommitdiff
path: root/tests/specs/install/jsr_exports/main.ts
diff options
context:
space:
mode:
authorNathan Whitaker <17734409+nathanwhit@users.noreply.github.com>2024-10-25 13:19:03 -0700
committerGitHub <noreply@github.com>2024-10-25 20:19:03 +0000
commitec968aa5aec068e92fb554fc7192d912bcddb82c (patch)
tree48e158f24bef5f4ca85cbc5eb5e3a32acccdad7a /tests/specs/install/jsr_exports/main.ts
parenta01edb394d2785b7d37da6435bb37381efc376ea (diff)
fix(install): cache json exports of JSR packages (#26552)
Fixes https://github.com/denoland/deno/issues/26509. Ended up being a `deno_graph` bug causing the error to surface. This PR updates `deno_graph` to pick up the fix and reverts the temporary workaround that skipped JSON exports.
Diffstat (limited to 'tests/specs/install/jsr_exports/main.ts')
-rw-r--r--tests/specs/install/jsr_exports/main.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/specs/install/jsr_exports/main.ts b/tests/specs/install/jsr_exports/main.ts
new file mode 100644
index 000000000..f7efdb0e9
--- /dev/null
+++ b/tests/specs/install/jsr_exports/main.ts
@@ -0,0 +1,7 @@
+import { add } from "@denotest/multiple-exports/add";
+import { subtract } from "@denotest/multiple-exports/subtract";
+import data from "@denotest/multiple-exports/data-json" with { type: "json" };
+
+console.log(add(1, 2));
+console.log(subtract(1, 2));
+console.log(data);