Make error on missing task definition ignorable #7472
Alfred-Mountfield
started this conversation in
Ideas
Replies: 2 comments
-
Can you provide a small reproduction I can play around with? The |
Beta Was this translation helpful? Give feedback.
0 replies
-
A workaround is to add a "postinstall": "echo 'No postinstall'" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Which project is this feature idea for?
Turborepo
Describe the feature you'd like to request
When you call
turbo <TASK>
, if turbo can't find the task definition it returns an error:This makes sense as default behaviour, but can be frustrating if you want to use it within a monorepo to call tasks on
postinstall
(for example) but then also wish to utiliseturbo prune
.How I wish to use this:
package.json
scripts within them to setup and install their Python dependencies in their venvspostinstall
in the rootturbo prune other-package
postinstall
with the above message.Describe the solution you'd like
An argument you can provide to turbo to ignore missing task definitions. Perhaps
--ignore-missing
or something like that. Or perhaps better than that, an environment variable so you can set it in certain circumstances (such as after aturbo prune
) without it being in yourpackage.json
all the time.Describe alternatives you've considered
I'm unsure what way to get around this other than somehow grepping the output which doesn't seem ideal, or creating a no-op equivalent script in every package.
Beta Was this translation helpful? Give feedback.
All reactions