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:
Bartek Iwańczuk 2022-09-07 15:33:51 +02:00 committed by GitHub
parent 3b1204eb2d
commit 4a250b2f25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 144 additions and 2 deletions

View file

@ -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());
}