0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-07 23:06:50 -05:00

Compare commits

...

2 commits

Author SHA1 Message Date
Nathan Whitaker
162e2dc96b
rm unused file 2024-11-27 16:16:46 -05:00
Nathan Whitaker
5203c38a5f
handle package json req 2024-11-27 16:16:11 -05:00
3 changed files with 28 additions and 6 deletions

View file

@ -102,7 +102,13 @@ pub async fn info(
node_resolver::NodeResolutionKind::Execution,
)?)
}
_ => None,
deno_package_json::PackageJsonDepValue::Req(req) => {
Some(ModuleSpecifier::parse(&format!(
"npm:{}{}",
req,
sub_path.map(|s| format!("/{}", s)).unwrap_or_default()
))?)
}
},
}
} else {

View file

@ -1,9 +1,21 @@
{
"tempDir": true,
"steps": [
{
"args": "info --quiet main.ts",
"output": "info.out"
"tests": {
"resolves_npm_deps": {
"steps": [
{
"args": "info --quiet main.ts",
"output": "info.out"
}
]
},
"bare_specifier": {
"steps": [
{
"args": "info --quiet @denotest/esm-basic",
"output": "info_bare.out"
}
]
}
]
}
}

View file

@ -0,0 +1,4 @@
dependencies: 0 unique
size: 471B
npm:/@denotest/esm-basic@1.0.0 (471B)