diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-09-07 15:33:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-07 15:33:51 +0200 |
commit | 4a250b2f25d3e9fea31a1effb10d3fe07c3564ae (patch) | |
tree | c15442571cf271af1014df061f1aa7f1984e0e89 /cli/proc_state.rs | |
parent | 3b1204eb2d9c5cdf21bb92f7c8923869477f0969 (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.rs | 1 |
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 { |