diff options
author | Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com> | 2024-08-21 15:23:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-21 15:23:32 -0700 |
commit | 48da3c17ea905f50b82948e6f94795e1589f852e (patch) | |
tree | e65d5da97ef0cd4b9f67972b8ba647420d39952e /tests/specs/install | |
parent | 9aaad3064a412b24e88e308750e038d4e1df6f3c (diff) |
fix(add): Handle packages without root exports (#25102)
Fixes #24607.
This PR makes the logic that caches top level dependencies (things
present in import map) smarter, so we handle JSR dependencies without
root exports.
Diffstat (limited to 'tests/specs/install')
3 files changed, 18 insertions, 2 deletions
diff --git a/tests/specs/install/future_install_local_deno/deno.json b/tests/specs/install/future_install_local_deno/deno.json index dbcf1c220..9213ce834 100644 --- a/tests/specs/install/future_install_local_deno/deno.json +++ b/tests/specs/install/future_install_local_deno/deno.json @@ -3,6 +3,8 @@ "@std/fs/": "https://deno.land/std@0.224.0/fs/", "@denotest/esm-basic": "npm:@denotest/esm-basic@^1.0.0", "@denotest/add": "jsr:@denotest/add", - "test-http": "http://localhost:4545/v1/extensionless" + "test-http": "http://localhost:4545/v1/extensionless", + "@std/testing": "jsr:@std/testing", + "@std/testing/": "jsr:/@std/testing/" } } diff --git a/tests/specs/install/future_install_local_deno/deno.lock.out b/tests/specs/install/future_install_local_deno/deno.lock.out index 188de5de9..04bfc9b3a 100644 --- a/tests/specs/install/future_install_local_deno/deno.lock.out +++ b/tests/specs/install/future_install_local_deno/deno.lock.out @@ -2,11 +2,15 @@ "version": "4", "specifiers": { "jsr:@denotest/add": "jsr:@denotest/add@1.0.0", + "jsr:@std/testing": "jsr:@std/testing@1.0.0", "npm:@denotest/esm-basic@^1.0.0": "npm:@denotest/esm-basic@1.0.0" }, "jsr": { "@denotest/add@1.0.0": { "integrity": "[WILDCARD]" + }, + "@std/testing@1.0.0": { + "integrity": "[WILDCARD]" } }, "npm": { @@ -14,10 +18,16 @@ "integrity": "[WILDCARD]" } }, - "remote": [WILDCARD], + "remote": { + "http://localhost:4545/subdir/mod1.ts": "[WILDCARD]", + "http://localhost:4545/subdir/print_hello.ts": "[WILDCARD]", + "http://localhost:4545/subdir/subdir2/mod2.ts": "[WILDCARD]", + "http://localhost:4545/v1/extensionless": "[WILDCARD]" + }, "workspace": { "dependencies": [ "jsr:@denotest/add", + "jsr:@std/testing", "npm:@denotest/esm-basic@^1.0.0" ] } diff --git a/tests/specs/install/future_install_local_deno/install.out b/tests/specs/install/future_install_local_deno/install.out index eecba1299..15263a37b 100644 --- a/tests/specs/install/future_install_local_deno/install.out +++ b/tests/specs/install/future_install_local_deno/install.out @@ -1,4 +1,6 @@ [UNORDERED_START] +Download http://127.0.0.1:4250/@std/testing/meta.json +Download http://127.0.0.1:4250/@std/testing/1.0.0_meta.json Download http://localhost:4545/v1/extensionless Download http://localhost:4545/subdir/mod1.ts Download http://localhost:4545/subdir/subdir2/mod2.ts @@ -8,4 +10,6 @@ Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts Download http://localhost:4260/@denotest/esm-basic Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz +Download http://127.0.0.1:4250/@std/testing/1.0.0/bdd.ts +Download http://127.0.0.1:4250/@std/testing/1.0.0/types.ts [UNORDERED_END] |