summaryrefslogtreecommitdiff
path: root/cli/main.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-11-25 17:00:28 -0500
committerGitHub <noreply@github.com>2022-11-25 17:00:28 -0500
commit0cc90d9246ff2c392457632d5030eaca2ca1ca6f (patch)
tree64e3a777d0ee2674768390d3124508434441fcf7 /cli/main.rs
parentd0a4e23ae824baf1994291d8480be29719f1b99a (diff)
refactor: move lockfile.rs to args module (#16818)
This should be in the `args` folder as it's similar to `config_file`.
Diffstat (limited to 'cli/main.rs')
-rw-r--r--cli/main.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/cli/main.rs b/cli/main.rs
index f18c3c976..93f2c501d 100644
--- a/cli/main.rs
+++ b/cli/main.rs
@@ -19,7 +19,6 @@ mod graph_util;
mod http_cache;
mod http_util;
mod js;
-mod lockfile;
mod logger;
mod lsp;
mod module_loader;
@@ -74,6 +73,7 @@ use crate::resolver::CliResolver;
use crate::tools::check;
use args::CliOptions;
+use args::Lockfile;
use deno_ast::MediaType;
use deno_core::anyhow::bail;
use deno_core::error::generic_error;
@@ -327,7 +327,7 @@ async fn create_graph_and_maybe_check(
Permissions::allow_all(),
Permissions::allow_all(),
);
- let maybe_locker = lockfile::as_maybe_locker(ps.lockfile.clone());
+ let maybe_locker = Lockfile::as_maybe_locker(ps.lockfile.clone());
let maybe_imports = ps.options.to_maybe_imports()?;
let maybe_cli_resolver = CliResolver::maybe_new(
ps.options.to_maybe_jsx_import_source_config(),
@@ -937,7 +937,7 @@ fn unwrap_or_exit<T>(result: Result<T, AnyError>) -> T {
if let Some(e) = error.downcast_ref::<JsError>() {
error_string = format_js_error(e);
- } else if let Some(e) = error.downcast_ref::<lockfile::LockfileError>() {
+ } else if let Some(e) = error.downcast_ref::<args::LockfileError>() {
error_string = e.to_string();
error_code = 10;
}