summaryrefslogtreecommitdiff
path: root/cli/tools/installer.rs
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2022-12-08 11:50:09 -0500
committerGitHub <noreply@github.com>2022-12-08 11:50:09 -0500
commit91443bbc0b3e5420d8a0b3506f1b18a88d48560a (patch)
tree804e60461874a71af08760f3aa1809c782558ac0 /cli/tools/installer.rs
parenta6b5d05311f54d085a1e44f4a51717b4c0a4c74b (diff)
fix(compile): ensure import map is used when specified in deno config file (#16990)
Closes #14246
Diffstat (limited to 'cli/tools/installer.rs')
-rw-r--r--cli/tools/installer.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/tools/installer.rs b/cli/tools/installer.rs
index 6914c9919..0e915677a 100644
--- a/cli/tools/installer.rs
+++ b/cli/tools/installer.rs
@@ -1,5 +1,6 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
+use crate::args::resolve_no_prompt;
use crate::args::ConfigFlag;
use crate::args::Flags;
use crate::args::InstallFlags;
@@ -357,7 +358,7 @@ fn resolve_shim_data(
executable_args.push("--cached-only".to_string());
}
- if flags.no_prompt {
+ if resolve_no_prompt(flags) {
executable_args.push("--no-prompt".to_string());
}