summaryrefslogtreecommitdiff
path: root/cli/proc_state.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-09-07 15:33:51 +0200
committerGitHub <noreply@github.com>2022-09-07 15:33:51 +0200
commit4a250b2f25d3e9fea31a1effb10d3fe07c3564ae (patch)
treec15442571cf271af1014df061f1aa7f1984e0e89 /cli/proc_state.rs
parent3b1204eb2d9c5cdf21bb92f7c8923869477f0969 (diff)
feat: add --no-npm flag to disable npm: imports (#15673)
This commit adds "--no-npm" flag, it's similar to "--no-remote" flag. This flag makes Deno error out if "npm:" specifier is encountered.
Diffstat (limited to 'cli/proc_state.rs')
-rw-r--r--cli/proc_state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/proc_state.rs b/cli/proc_state.rs
index fc349ac25..3505d97d0 100644
--- a/cli/proc_state.rs
+++ b/cli/proc_state.rs
@@ -223,6 +223,7 @@ impl ProcState {
cli_options.unstable()
// don't do the unstable error when in the lsp
|| matches!(cli_options.sub_command(), DenoSubcommand::Lsp),
+ cli_options.no_npm(),
);
Ok(ProcState(Arc::new(Inner {