Add "deno check" subcommand for type checking
feat: Add "deno check" subcommand for type checking (#14072)
Add "deno check" subcommand for type checkingfeatadd deno check subcommand type checking
Committed by bartlomieju
commit message
feat: Add "deno check" subcommand for type checking (#14072)
This commit adds new "deno check" subcommand.
Currently it is an alias for "deno cache" with the difference that remote
modules don't emit TS diagnostics by default.
Prints warning for "deno run" subcommand if "--check" flag is not present
and there's no "--no-check" flag. Adds "DENO_FUTURE_CHECK" env
variable that allows to opt into new behavior now.Editor assessment
The subject announces the new deno check subcommand for type checking, and the body delivers real substance: it explains that check is currently an alias for cache with different diagnostic defaults, and documents the warning behavior plus the DENO_FUTURE_CHECK opt-in variable. That is behavioral documentation a user can act on, not restatement. The missing scope is tolerable because the subcommand is named, the feat type is right, and hygiene is clean. A strong publishable example. The alias caveat and opt-in variable make this unusually complete for a new command, needing only a rationale for the default change to be exemplary.