ls
列出你的 monorepo 中的包。
¥List packages in your monorepo.
当范围限定为整个存储库时,输出包含软件包管理器、软件包数量以及所有软件包名称和目录。
¥When scoped to the entire repository, output includes package manager, package count, and all package names and directories.
当范围限定为一个或多个软件包时,输出包含软件包名称、目录、内部依赖和所有任务。
¥When scoped to one or more packages, output includes package name, directory, internal dependencies, and all tasks.
标志
¥Flags
--affected
自动过滤仅受当前分支更改影响的包。
¥Automatically filter to only packages that are affected by changes on the current branch.
默认情况下,考虑的更改是 main
和 HEAD
之间的更改。
¥By default the changes considered are those between main
and HEAD
.
-
你可以通过设置
TURBO_SCM_BASE
将main
覆盖为默认基础包。¥You can override
main
as the default base by settingTURBO_SCM_BASE
. -
你可以通过设置
TURBO_SCM_HEAD
将HEAD
覆盖为默认头包。¥You can override
HEAD
as the default head by settingTURBO_SCM_HEAD
.
--output <format>
Experimental
输出结果的格式。json
或 pretty
(默认)
¥Format to output the results. json
or pretty
(default)