deno check
命令行用法
o check [OPTIONS] [file]...
下载并进行类型检查,但不执行。
deno check jsr:@std/http/file-server
除非指定了 --reload,否则此命令不会重新下载已缓存的依赖项
了解更多: https://docs.deno.com/go/check
不稳定选项 Jump to heading
--unstable
Jump to heading
--unstable
标志已被弃用。请改用细粒度的 --unstable-*
标志.
--unstable-bare-node-builtins
Jump to heading
启用不稳定的裸 Node 内置功能.
--unstable-broadcast-channel
Jump to heading
启用不稳定的 BroadcastChannel
API.
--unstable-cron
Jump to heading
启用不稳定的 Deno.cron API.
--unstable-detect-cjs
Jump to heading
在更多情况下将模棱两可的 .js、.jsx、.ts、.tsx 文件视为 CommonJS 模块.
--unstable-kv
Jump to heading
启用不稳定的键值存储 API.
--unstable-net
Jump to heading
启用不稳定的网络 API.
--unstable-node-globals
Jump to heading
在所有地方暴露 Node 全局变量.
--unstable-sloppy-imports
Jump to heading
启用通过扩展探测、.js 到 .ts 以及目录探测来解析模块的不稳定功能.
--unstable-temporal
Jump to heading
启用不稳定的 Temporal API.
--unstable-unsafe-proto
Jump to heading
启用不安全的 proto 支持。这是一个安全风险。.
--unstable-webgpu
Jump to heading
启用不稳定的 WebGPU
API.
--unstable-worker-options
Jump to heading
启用不稳定的 Web Worker API.
依赖管理选项 Jump to heading
--frozen
Jump to heading
如果锁文件过期则报错.
--import-map
Jump to heading
从本地文件或远程 URL 加载导入映射文件 文档:https://docs.deno.com/runtime/manual/basics/import_maps.
--lock
Jump to heading
检查指定的锁文件。(如果未提供值,则默认为 "./deno.lock").
--no-lock
Jump to heading
禁用锁文件的自动发现.
--no-npm
Jump to heading
不解析 npm 模块.
--no-remote
Jump to heading
不解析远程模块.
--node-modules-dir
Jump to heading
设置 npm 包的 node_modules 管理模式.
--reload
Jump to heading
Short flag: -r
重新加载源代码缓存(重新编译 TypeScript) 无值 重新加载所有内容 jsr:@std/http/file-server,jsr:@std/assert/assert-equals 重新加载特定模块 npm: 重新加载所有 npm 模块 npm:chalk 重新加载特定 npm 模块.
--vendor
Jump to heading
切换远程模块的本地 vendor 文件夹和 npm 包的 node_modules 文件夹的使用.
Options Jump to heading
--all
Jump to heading
检查所有代码,包括远程模块和 npm 包.
--allow-import
Jump to heading
Short flag: -I
允许从远程主机导入。可选地指定允许的 IP 地址和主机名,必要时包括端口。默认值:deno.land:443,jsr.io:443,esm.sh:443,cdn.jsdelivr.net:443,raw.githubusercontent.com:443,user.githubusercontent.com:443.
--cert
Jump to heading
从 PEM 编码的文件加载证书颁发机构.
--config
Jump to heading
Short flag: -c
配置 deno 的不同方面,包括 TypeScript、代码检查和格式化
通常配置文件会被命名为 deno.json
或 deno.jsonc
并自动检测;在这种情况下,此标志不是必需的。
文档:https://docs.deno.com/go/config.
--doc
Jump to heading
检查 JSDoc 中的代码块以及实际代码.
--doc-only
Jump to heading
仅检查 JSDoc 和 Markdown 中的代码块.
--no-code-cache
Jump to heading
禁用 V8 代码缓存功能.
--no-config
Jump to heading
禁用自动加载配置文件.