diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-03-30 10:43:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-30 10:43:16 -0400 |
commit | e0429e2ad641e9207e00838de209ce33b3562f70 (patch) | |
tree | 496c38dadb79c4dc9ae4eea755e2ac6a65440ad4 /cli/args/flags.rs | |
parent | 3deade4b14de809f67ed0471f8e91c91b25fedcc (diff) |
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
Diffstat (limited to 'cli/args/flags.rs')
-rw-r--r-- | cli/args/flags.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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) |