Doesn't a workspace task (my-app#dev) inherit properties from the "base" task (dev)? #10242
-
SummaryI simply wanted to add a dependency for the execution of the Is this normal behavior? Is there a better solution? I wouldn’t like to have to duplicate the variables 😢 Maybe removing the specific variables of each app and creating a task for each of them with them, in addition to duplicating the shared ones? It should improve a lot, but it would still have a little repetition unfortunately. Additional information{
"$schema": "https://turbo.build/schema.json",
"tasks": {
"dev": {
"cache": false,
"persistent": true,
"env": [
"VITE_HMR_CLIENT_PORT",
"VITE_BASE",
"SHARED_APP_VARIABLE",
"REACT_SCRIPTS_APP_VARIABLE"
]
},
"my-app#dev": {
"dependsOn": ["@repo/my-package#build"]
},
"build": { /* ... */ }
}
}ExampleNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
If I'm understanding the question correctly, it sounds like you're looking for Package Configurations. |
Beta Was this translation helpful? Give feedback.
If I'm understanding the question correctly, it sounds like you're looking for Package Configurations.