mirror of
https://github.com/denoland/deno.git
synced 2024-11-21 15:04:11 -05:00
fix(install): cache jsr deps from all workspace config files (#26779)
Fixes #26772. I wasn't aware that the `imports()` method only returned the workspace root imports
This commit is contained in:
parent
b482a50299
commit
d4f1bd3dac
6 changed files with 40 additions and 1 deletions
|
@ -44,7 +44,11 @@ pub async fn cache_top_level_deps(
|
|||
|
||||
let mut seen_reqs = std::collections::HashSet::new();
|
||||
|
||||
for entry in import_map.imports().entries() {
|
||||
for entry in import_map.imports().entries().chain(
|
||||
import_map
|
||||
.scopes()
|
||||
.flat_map(|scope| scope.imports.entries()),
|
||||
) {
|
||||
let Some(specifier) = entry.value else {
|
||||
continue;
|
||||
};
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"tempDir": true,
|
||||
"steps": [
|
||||
{
|
||||
"args": "install",
|
||||
"output": "install.out"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"workspace": ["packages/foo", "packages/bar"],
|
||||
"imports": {
|
||||
"@denotest/subtract": "jsr:@denotest/subtract@^1.0.0"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
[UNORDERED_START]
|
||||
Download http://localhost:4260/@denotest%2fesm-basic
|
||||
Download http://localhost:4260/@denotest/esm-basic/1.0.0.tgz
|
||||
Download http://127.0.0.1:4250/@denotest/subtract/meta.json
|
||||
Download http://127.0.0.1:4250/@denotest/add/meta.json
|
||||
Download http://127.0.0.1:4250/@denotest/add/1.0.0_meta.json
|
||||
Download http://127.0.0.1:4250/@denotest/subtract/1.0.0_meta.json
|
||||
Download http://127.0.0.1:4250/@denotest/add/1.0.0/mod.ts
|
||||
Download http://127.0.0.1:4250/@denotest/subtract/1.0.0/mod.ts
|
||||
[UNORDERED_END]
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"imports": {
|
||||
"@denotest/esm-basic": "npm:@denotest/esm-basic@^1.0.0"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"imports": {
|
||||
"@denotest/add": "jsr:@denotest/add@^1.0.0"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue