summaryrefslogtreecommitdiff
path: root/cli/args/mod.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-06-09 08:56:11 -0400
committerGitHub <noreply@github.com>2023-06-09 08:56:11 -0400
commit5df735d3dad81feffe598a4561cdcbbe1bd0bd45 (patch)
tree3392732aee79c273a783072f377983122817c283 /cli/args/mod.rs
parentf182c8af872a429d82c96a5ef091cec0e4e75102 (diff)
fix(config): do not canonicalize config file path before loading (#19436)
I'm unsure why we canonicalize the config file path when loading and the canonicalization is causing issues in #19431 because everything in the lsp is not canonicalized except the config file (actually, the config file is only canonicalized when auto-discovered and not whens pecified). We also don't canonicalize module paths when loading them. Canonicalization was added in https://github.com/denoland/deno/pull/7621
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r--cli/args/mod.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs
index 6dab0c973..d740b9ab0 100644
--- a/cli/args/mod.rs
+++ b/cli/args/mod.rs
@@ -396,8 +396,6 @@ fn discover_package_json(
// `package.json` is ignored in bundle/compile/etc.
if let Some(package_json_dir) = flags.package_json_search_dir(current_dir) {
- let package_json_dir =
- canonicalize_path_maybe_not_exists(&package_json_dir)?;
return package_json::discover_from(&package_json_dir, maybe_stop_at);
}