mirror of
https://github.com/denoland/deno.git
synced 2025-02-14 17:47:35 -05:00
handle package json req
This commit is contained in:
parent
7c39bf8a73
commit
5203c38a5f
4 changed files with 28 additions and 6 deletions
|
@ -102,7 +102,13 @@ pub async fn info(
|
||||||
node_resolver::NodeResolutionKind::Execution,
|
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 {
|
} else {
|
||||||
|
|
|
@ -1,9 +1,21 @@
|
||||||
{
|
{
|
||||||
"tempDir": true,
|
"tempDir": true,
|
||||||
"steps": [
|
"tests": {
|
||||||
{
|
"resolves_npm_deps": {
|
||||||
"args": "info --quiet main.ts",
|
"steps": [
|
||||||
"output": "info.out"
|
{
|
||||||
|
"args": "info --quiet main.ts",
|
||||||
|
"output": "info.out"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"bare_specifier": {
|
||||||
|
"steps": [
|
||||||
|
{
|
||||||
|
"args": "info --quiet @denotest/esm-basic",
|
||||||
|
"output": "info_bare.out"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
dependencies: 0 unique
|
||||||
|
size: 471B
|
||||||
|
|
||||||
|
npm:/@denotest/esm-basic@1.0.0 (471B)
|
Loading…
Add table
Reference in a new issue