-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
Describe the feature you'd like to request
Use case: I want to have a clean way to prepare the environment to run a certain script.
Project structure:
config
scripts:
build
lint
app
dependencies:
config
scripts:
lint
// turbo.json
{
"pipeline": {
..
"lint": {
"dependsOn": ["^build"],
"outputs": []
},
Describe the solution you'd like
I would like to run yarn lint <file>
inside app
but this also requires config
to be built. Running this lint
with arguments should run through turbo and cache.
To do that, I'd expect to be able to run a command that will satisfy the environment before I'm able to run the command, run all the dependsOn
of that script for the filter, without running it on the current package:
yarn turbo run lint --filter=app^ # should only build config
yarn workspace app lint <file>
Describe alternatives you've considered
The --filter=app^...
is not what I'm looking for.
yarn turbo run lint --filter=app^...
will run lint
also in config
(and other dependencies of app
) as well as running the dependsOn
(config#build
) but I only want config#build
to run.
While it runs "too much" it's still getting the env ready, but it's not idea.