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.
要了解更多信息,请访问:
¥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#devDependencies
或package.json#dependencies
中检查turbo
条目。如果在那里找到一个版本,它将被使用。¥First, check for a
turbo
entry in rootpackage.json#devDependencies
orpackage.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 inpackage.json
,turbo.json
will be read for its schema. If thetasks
key is found, useturbo@^2
. If thepipeline
from Turborepo v1 is found, useturbo@^1
.