ls

列出你的 monorepo 中的包。

¥List packages in your monorepo.

Terminal
turbo ls [package(s)] [flags]

当范围限定为整个存储库时,输出包含软件包管理器、软件包数量以及所有软件包名称和目录。

¥When scoped to the entire repository, output includes package manager, package count, and all package names and directories.

Terminal
# List all packages in the repository
turbo ls

当范围限定为一个或多个软件包时,输出包含软件包名称、目录、内部依赖和所有任务。

¥When scoped to one or more packages, output includes package name, directory, internal dependencies, and all tasks.

Terminal
# List only two packages
turbo ls web @repo/ui [package(s)]

标志

¥Flags

--affected

自动过滤仅受当前分支更改影响的包。

¥Automatically filter to only packages that are affected by changes on the current branch.

默认情况下,考虑的更改是 mainHEAD 之间的更改。

¥By default the changes considered are those between main and HEAD.

  • 你可以通过设置 TURBO_SCM_BASEmain 覆盖为默认基础包。

    ¥You can override main as the default base by setting TURBO_SCM_BASE.

  • 你可以通过设置 TURBO_SCM_HEADHEAD 覆盖为默认头包。

    ¥You can override HEAD as the default head by setting TURBO_SCM_HEAD.

Terminal
TURBO_SCM_BASE=development turbo ls --affected

--output <format> Experimental

输出结果的格式。jsonpretty(默认)

¥Format to output the results. json or pretty (default)

Terminal
turbo ls --output=json