diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2022-03-16 21:37:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 21:37:02 -0400 |
commit | 18f998fbee51f5dc2f31f6172bcdc7390bf795fa (patch) | |
tree | 53a34767a64782dc96b29b00b498d5f92e229363 /cli | |
parent | 92bb25105822d0def65aa89ee5141c862ac7a3e4 (diff) |
chore: fix build (#13997)
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 2 | ||||
-rw-r--r-- | cli/compat/mod.rs | 2 | ||||
-rw-r--r-- | cli/tools/lint.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 5920ffacb..cea7f44e8 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -75,7 +75,7 @@ jsonc-parser = { version = "=0.19.0", features = ["serde"] } libc = "=0.2.106" log = { version = "=0.4.14", features = ["serde"] } lspower = "=1.4.0" -node_resolver = "0.1.0" +node_resolver = "=0.1.1" notify = "=5.0.0-pre.12" num-format = "=0.4.0" once_cell = "=1.9.0" diff --git a/cli/compat/mod.rs b/cli/compat/mod.rs index 80838e229..e133368d2 100644 --- a/cli/compat/mod.rs +++ b/cli/compat/mod.rs @@ -190,7 +190,7 @@ pub async fn translate_cjs_to_esm( // if there are reexports, handle them first for (idx, reexport) in analysis.reexports.iter().enumerate() { // Firstly, resolve relate reexport specifier - let resolved_reexport = node_resolver::node_resolve( + let resolved_reexport = node_resolver::resolve( reexport, &specifier.to_file_path().unwrap(), // FIXME(bartlomieju): check if these conditions are okay, probably diff --git a/cli/tools/lint.rs b/cli/tools/lint.rs index 1dfda8adc..160ff88ff 100644 --- a/cli/tools/lint.rs +++ b/cli/tools/lint.rs @@ -550,7 +550,7 @@ pub(crate) fn get_configured_rules( ); if configured_rules.is_empty() { - anyhow!("No rules have been configured"); + return Err(anyhow!("No rules have been configured")); } Ok(configured_rules) |