Skip to content

Commit

Permalink
chore: fix wasm support (#119)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauorriols authored Sep 26, 2024
1 parent 7a0c286 commit 46f1348
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/workspace/resolver.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use url::Url;

use crate::sync::new_rc;
use crate::util::url_from_directory_path;
use crate::util::url_to_file_path;
use crate::workspace::Workspace;

use super::UrlRc;
Expand Down Expand Up @@ -456,11 +457,9 @@ impl WorkspaceResolver {
.package_jsons
.into_iter()
.map(|(relative_path, json)| {
let path = root_dir_url
.join(&relative_path)
.unwrap()
.to_file_path()
.unwrap();
let path =
url_to_file_path(&root_dir_url.join(&relative_path).unwrap())
.unwrap();
let pkg_json =
deno_package_json::PackageJson::load_from_value(path, json);
PackageJsonRc::new(pkg_json)
Expand Down

0 comments on commit 46f1348

Please sign in to comment.