From e0429e2ad641e9207e00838de209ce33b3562f70 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Thu, 30 Mar 2023 10:43:16 -0400 Subject: fix(repl): improve package.json support (#18497) 1. Fixes a cosmetic issue in the repl where it would display lsp warning messages. 2. Lazily loads dependencies from the package.json on use. 3. Supports using bare specifiers from package.json in the REPL. Closes #17929 Closes #18494 --- cli/args/flags.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/args') diff --git a/cli/args/flags.rs b/cli/args/flags.rs index f3b92b4fb..7caa12ca8 100644 --- a/cli/args/flags.rs +++ b/cli/args/flags.rs @@ -527,7 +527,7 @@ impl Flags { .ok() } Task(_) | Check(_) | Coverage(_) | Cache(_) | Info(_) | Eval(_) - | Test(_) | Bench(_) => std::env::current_dir().ok(), + | Test(_) | Bench(_) | Repl(_) => std::env::current_dir().ok(), _ => None, } } @@ -2245,7 +2245,7 @@ fn lock_arg() -> Arg { Arg::new("lock") .long("lock") .value_name("FILE") - .help("Check the specified lock file. + .help("Check the specified lock file. If value is not provided, defaults to \"deno.lock\" in the current working directory.") .num_args(0..=1) -- cgit v1.2.3