nuxi typecheck

typecheck 命令运行 vue-tsc 检查整个应用的类型。
Terminal
npx nuxi typecheck [ROOTDIR] [--cwd=<directory>] [--logLevel=<silent|info|verbose>]

typecheck 命令会运行 vue-tsc 来检查整个应用中的类型。

¥The typecheck command runs vue-tsc to check types throughout your app.

参数

¥Arguments

参数描述
ROOTDIR="."指定工作目录(默认值:.

选项

¥Options

选项默认描述
--cwd=<directory>指定工作目录,该目录优先于 ROOTDIR(默认值:.
--logLevel=<silent|info|verbose>指定构建时日志级别
此命令将 process.env.NODE_ENV 设置为 production。要覆盖 NODE_ENV,请在 .env 文件中定义 NODE_ENV,或将其作为命令行参数。

:

Read more in Docs > Guide > Concepts > Typescript#type Checking.

了解更多关于如何在构建或开发时启用类型检查的信息。

¥Read more on how to enable type-checking at build or development time.

::