You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I have to specify the files to ignore (here "!packages/" and "!apps/")
The source of truth is duplicated (If I change the workspace structure, I must also patch turbo.json)
Having some kind of variable like $TURBO_DEFAULT$ would be cleaner
Non-goals
No response
Background
Based on the current $TURBO_DEFAULT$ implementation, this seems like a possible and standardized way of achieving this feature.
Proposal
To solve this, the idea would be to have a $TURBO_WORKSPACES$ that would resolve to the workspace files.
{
"//#lint:root": {
"inputs": ["$TURBO_DEFAULT$", ".env*", "!$TURBO_WORKSPACES$"]
}
}
// $TURBO_WORKSPACES$ = the value of `(eval package.json//workspaces)`// !$TURBO_WORKSPACES$ = negate each value of // $TURBO_WORKSPACES$
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Goals
I often use root tasks to lint conf files at the root.
{ "//#lint:root": { "inputs": ["$TURBO_DEFAULT$", ".env*", "!packages/**", "!apps/**"] } }But I have to specify the files to ignore (here "!packages/" and "!apps/")
The source of truth is duplicated (If I change the workspace structure, I must also patch turbo.json)
Having some kind of variable like
$TURBO_DEFAULT$would be cleanerNon-goals
No response
Background
Based on the current
$TURBO_DEFAULT$implementation, this seems like a possible and standardized way of achieving this feature.Proposal
To solve this, the idea would be to have a
$TURBO_WORKSPACES$that would resolve to the workspace files.{ "//#lint:root": { "inputs": ["$TURBO_DEFAULT$", ".env*", "!$TURBO_WORKSPACES$"] } } // $TURBO_WORKSPACES$ = the value of `(eval package.json//workspaces)` // !$TURBO_WORKSPACES$ = negate each value of // $TURBO_WORKSPACES$All reactions