Repository navigation
Do workspace-specific pipelines inherit properties from the base pipeline? #3309
|
Say I had a turbo config like this: "pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": ["dist/**", "build/**"],
"env": [
"SENTRY_AUTH_TOKEN",
"SENTRY_DSN",
"SENTRY_PROJECT",
"SENTRY_ORG",
"NPM_RC",
"NPM_TOKEN"
]
},
"an-app#build": {
"outputs": [".next/**"],
"env": ["ENABLE_ROOT_PATH_BUILD_CACHE", "VERCEL_GIT_COMMIT_SHA"]
},
}Does the pipeline for "an-app#build": {
"dependsOn": ["^build"],
"outputs": [".next/**"],
"env": [
"ENABLE_ROOT_PATH_BUILD_CACHE",
"VERCEL_GIT_COMMIT_SHA",
"SENTRY_AUTH_TOKEN",
"SENTRY_DSN",
"SENTRY_PROJECT",
"SENTRY_ORG",
"NPM_RC",
"NPM_TOKEN"
]
},The docs (https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks#specific-workspace-tasks) say this:
which makes me feel like they don't but the second line says all you have to do is redeclare |
Answered by
anthonyshew
Jun 5, 2024
Replies: 1 comment 1 reply
|
Package-tasks do not inherit configuration. Package Configurations do. This doc should have all the information you're looking for: https://turbo.build/repo/docs/reference/package-configurations |
1 reply
Answer selected by
anthonyshew
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Package-tasks do not inherit configuration. Package Configurations do. This doc should have all the information you're looking for: https://turbo.build/repo/docs/reference/package-configurations