mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(npm): support bare specifiers in package.json having a path (#17903)
For example `import * as test from "package/path.js"`
This commit is contained in:
parent
344317ec50
commit
6233c0aff0
8 changed files with 110 additions and 20 deletions
|
@ -49,7 +49,7 @@ use deno_runtime::deno_tls::webpki_roots;
|
|||
use deno_runtime::inspector_server::InspectorServer;
|
||||
use deno_runtime::permissions::PermissionsOptions;
|
||||
use once_cell::sync::Lazy;
|
||||
use std::collections::HashMap;
|
||||
use std::collections::BTreeMap;
|
||||
use std::env;
|
||||
use std::io::BufReader;
|
||||
use std::io::Cursor;
|
||||
|
@ -799,7 +799,7 @@ impl CliOptions {
|
|||
|
||||
pub fn maybe_package_json_deps(
|
||||
&self,
|
||||
) -> Result<Option<HashMap<String, NpmPackageReq>>, AnyError> {
|
||||
) -> Result<Option<BTreeMap<String, NpmPackageReq>>, AnyError> {
|
||||
if matches!(
|
||||
self.flags.subcommand,
|
||||
DenoSubcommand::Task(TaskFlags { task: None, .. })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue