turbo-ignore

使用 turbo 确定包或其依赖是否有更改。这对于在 CI 中快速跳过任务非常有用。

¥Use turbo to determine if a package or its dependencies have changes. This can be useful for quickly skipping tasks in CI.

Terminal
npx turbo-ignore [workspace] [flags...]

要了解更多信息,请访问:

¥To learn more, visit:

turbo-ignore 版本控制

¥turbo-ignore versioning

由于 turbo-ignore 通常在将依赖安装到存储库之前使用,因此运行 turbo-ignore 时不会有可用的 turbo 二进制文件。turbo-ignore 将使用以下策略搜索与你的存储库一起使用的正确版本:

¥Because turbo-ignore is most often used before installing dependencies into the repository, there won't be a turbo binary available when you run turbo-ignore. Instead turbo-ignore will search for the correct version to use with your repository with the following strategy:

  • 首先,在根目录 package.json#devDependenciespackage.json#dependencies 中检查 turbo 条目。如果在那里找到一个版本,它将被使用。

    ¥First, check for a turbo entry in root package.json#devDependencies or package.json#dependencies. If a version is found there, it will be used.

  • 如果在 package.json 中找不到 entry,则会读取 turbo.json 的架构。如果找到 tasks,则使用 turbo@^2。如果找到了 Turborepo v1 中的 pipeline,请使用 turbo@^1

    ¥If no entry is found in package.json, turbo.json will be read for its schema. If the tasks key is found, use turbo@^2. If the pipeline from Turborepo v1 is found, use turbo@^1.