mirror of
https://github.com/denoland/deno.git
synced 2024-11-30 16:40:57 -05:00
chore: fix build (#13997)
This commit is contained in:
parent
92bb251058
commit
18f998fbee
4 changed files with 12 additions and 5 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
@ -2518,11 +2518,12 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "node_resolver"
|
name = "node_resolver"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "e35ed1604f6f4e33b51926d6be3bc09423f35eec776165c460c313dc2970ea5a"
|
checksum = "f1012fcb4f5cc14c272731f4baf6ba8a2d40c650908f4d2531f7ed17f214e5ae"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
|
"path-clean",
|
||||||
"serde",
|
"serde",
|
||||||
"serde_json",
|
"serde_json",
|
||||||
]
|
]
|
||||||
|
@ -2760,6 +2761,12 @@ dependencies = [
|
||||||
"winapi 0.3.9",
|
"winapi 0.3.9",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
[[package]]
|
||||||
|
name = "path-clean"
|
||||||
|
version = "0.1.0"
|
||||||
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
|
checksum = "ecba01bf2678719532c5e3059e0b5f0811273d94b397088b82e3bd0a78c78fdd"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "pem-rfc7468"
|
name = "pem-rfc7468"
|
||||||
version = "0.2.4"
|
version = "0.2.4"
|
||||||
|
|
|
@ -75,7 +75,7 @@ jsonc-parser = { version = "=0.19.0", features = ["serde"] }
|
||||||
libc = "=0.2.106"
|
libc = "=0.2.106"
|
||||||
log = { version = "=0.4.14", features = ["serde"] }
|
log = { version = "=0.4.14", features = ["serde"] }
|
||||||
lspower = "=1.4.0"
|
lspower = "=1.4.0"
|
||||||
node_resolver = "0.1.0"
|
node_resolver = "=0.1.1"
|
||||||
notify = "=5.0.0-pre.12"
|
notify = "=5.0.0-pre.12"
|
||||||
num-format = "=0.4.0"
|
num-format = "=0.4.0"
|
||||||
once_cell = "=1.9.0"
|
once_cell = "=1.9.0"
|
||||||
|
|
|
@ -190,7 +190,7 @@ pub async fn translate_cjs_to_esm(
|
||||||
// if there are reexports, handle them first
|
// if there are reexports, handle them first
|
||||||
for (idx, reexport) in analysis.reexports.iter().enumerate() {
|
for (idx, reexport) in analysis.reexports.iter().enumerate() {
|
||||||
// Firstly, resolve relate reexport specifier
|
// Firstly, resolve relate reexport specifier
|
||||||
let resolved_reexport = node_resolver::node_resolve(
|
let resolved_reexport = node_resolver::resolve(
|
||||||
reexport,
|
reexport,
|
||||||
&specifier.to_file_path().unwrap(),
|
&specifier.to_file_path().unwrap(),
|
||||||
// FIXME(bartlomieju): check if these conditions are okay, probably
|
// FIXME(bartlomieju): check if these conditions are okay, probably
|
||||||
|
|
|
@ -550,7 +550,7 @@ pub(crate) fn get_configured_rules(
|
||||||
);
|
);
|
||||||
|
|
||||||
if configured_rules.is_empty() {
|
if configured_rules.is_empty() {
|
||||||
anyhow!("No rules have been configured");
|
return Err(anyhow!("No rules have been configured"));
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(configured_rules)
|
Ok(configured_rules)
|
||||||
|
|
Loading…
Reference in a new issue