Add --no-npm flag to disable npm: imports
feat: add --no-npm flag to disable npm: imports (#15673)
Add --no-npm flag to disable npm: importsfeatadd npm flag disable imports
Committed by bartlomieju
commit message
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.Editor assessment
A strong feature commit: the subject announces the new `--no-npm` flag and its purpose (rejecting `npm:` specifiers), and the body usefully draws the parallel to `--no-remote`, letting readers transfer intuition immediately. Two improvements: the body opens with `This commit adds...`—the spec's own examples favor present-tense, imperative phrasing—and a `cli` scope would match the project's convention for flag surfaces, since bare `feat` leaves release-note filtering coarser. CRLF line endings are cosmetic noise. No breaking-change markers needed since default behavior is unchanged. Minor bump inference is correct. Clear, complete, and easily tightened.