0abc874ed5
This PR fixes turbo.json inputs to avoid cache hit when it should be cache miss.
Example PR it was incorrectly cached:
- [PR 52407](https://github.com/vercel/next.js/pull/52407)
- [Commit 06b780](06b780e15e
)
- [Logs with cache hit](https://github.com/vercel/next.js/actions/runs/5488474758/jobs/10001427837#step:27:29)
The docs mention the glob is relative to the workspace (aka package) directory, not the monorepo root.
> inputs globs must be specified as relative paths rooted at the workspace directory.
https://turbo.build/repo/docs/reference/configuration#inputs
80 lines
2 KiB
JSON
80 lines
2 KiB
JSON
{
|
|
"$schema": "https://turborepo.org/schema.json",
|
|
"pipeline": {
|
|
"build-native": {
|
|
"dependsOn": ["^build-native"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build-native-release": {
|
|
"dependsOn": ["^build-native-release"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build-native-no-plugin": {
|
|
"dependsOn": ["^build-native-no-plugin"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build-native-no-plugin-woa": {
|
|
"dependsOn": ["^build-native-no-plugin-woa"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build-native-no-plugin-woa-release": {
|
|
"dependsOn": ["^build-native-no-plugin-woa-release"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build-wasm": {
|
|
"dependsOn": ["^build-wasm"],
|
|
"outputs": ["crates/wasm/pkg/*"]
|
|
},
|
|
"cache-build-native": {
|
|
"dependsOn": ["^cache-build-native"],
|
|
"outputs": ["native/*.node"]
|
|
},
|
|
"build": {
|
|
"dependsOn": ["^build"],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"dev": {
|
|
"dependsOn": ["^dev"],
|
|
"outputs": ["dist/**"]
|
|
},
|
|
"typescript": {},
|
|
"//#typescript": {},
|
|
"rust-check": {
|
|
"inputs": [
|
|
"../../.cargo/**",
|
|
"../../packages/next-swc/crates/**",
|
|
"../../**/Cargo.toml",
|
|
"../../**/Cargo.lock"
|
|
]
|
|
},
|
|
"test-cargo-unit": {
|
|
"inputs": [
|
|
"../../.cargo/**",
|
|
"../../packages/next-swc/crates/**",
|
|
"../../**/Cargo.toml",
|
|
"../../**/Cargo.lock"
|
|
]
|
|
},
|
|
"test-cargo-integration": {
|
|
"inputs": [
|
|
"../../.cargo/**",
|
|
"../../packages/next-swc/crates/**",
|
|
"../../packages/next/**",
|
|
"../../**/Cargo.toml",
|
|
"../../**/Cargo.lock"
|
|
]
|
|
},
|
|
"test-cargo-bench": {
|
|
"inputs": [
|
|
"../../.cargo/**",
|
|
"../../packages/next-swc/crates/**",
|
|
"../../**/Cargo.toml",
|
|
"../../**/Cargo.lock"
|
|
]
|
|
},
|
|
"//#get-test-timings": {
|
|
"inputs": ["run-tests.js"],
|
|
"outputs": ["test-timings.json"]
|
|
}
|
|
}
|
|
}
|