diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2024-09-28 07:55:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-28 07:55:01 -0400 |
| commit | fc739dc5eb2769e4608ccf08d23ca8ff0fcc19c5 (patch) | |
| tree | 9c5bca411f4b9a6aea5a190d88217f4925563ad3 /cli/args/flags.rs | |
| parent | b694efb3849c4737e8ad617a9a48d5488e21d5da (diff) | |
refactor: use deno_path_util (#25918)
Diffstat (limited to 'cli/args/flags.rs')
| -rw-r--r-- | cli/args/flags.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/args/flags.rs b/cli/args/flags.rs index 9938a0955..13c93fa83 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -29,13 +29,13 @@ use deno_config::glob::PathOrPatternSet; use deno_core::anyhow::bail; use deno_core::anyhow::Context; use deno_core::error::AnyError; -use deno_core::normalize_path; use deno_core::resolve_url_or_path; use deno_core::url::Url; use deno_graph::GraphKind; +use deno_path_util::normalize_path; +use deno_path_util::url_to_file_path; use deno_runtime::deno_permissions::parse_sys_kind; use deno_runtime::deno_permissions::PermissionsOptions; -use deno_runtime::fs_util::specifier_to_file_path; use log::debug; use log::Level; use serde::Deserialize; @@ -1002,7 +1002,7 @@ impl Flags { if module_specifier.scheme() == "file" || module_specifier.scheme() == "npm" { - if let Ok(p) = specifier_to_file_path(&module_specifier) { + if let Ok(p) = url_to_file_path(&module_specifier) { Some(vec![p.parent().unwrap().to_path_buf()]) } else { Some(vec![current_dir.to_path_buf()]) |
