mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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.
This commit is contained in:
parent
3b1204eb2d
commit
4a250b2f25
8 changed files with 144 additions and 2 deletions
|
@ -321,6 +321,10 @@ fn resolve_shim_data(
|
|||
executable_args.push("--no-remote".to_string());
|
||||
}
|
||||
|
||||
if flags.no_npm {
|
||||
executable_args.push("--no-npm".to_string());
|
||||
}
|
||||
|
||||
if flags.lock_write {
|
||||
executable_args.push("--lock-write".to_string());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue