What does $TURBO_DEFAULT$
represent exactly?
#10606
Replies: 1 comment 2 replies
-
Answer 1: Answer 2: package.json is always included in the hash, even if you try to ignore it. Made #10628 to improve the documentation. Thank you for asking! |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
Apologies if this has been asked/answered elsewhere, I've gone through issues and discussions but not been able to find an answer to this specific question.
So I understand that turborepo has the special
$TURBO_DEFAULT$
string for restoring the default behaviour forinputs
, and here in the docs, I see the following regarding what said default behaviour is:So, question 1: Is that what the special string does, include all files checked into source control?
I ask because for a certain task I want the inputs to be just one file, lets call it
foo.js
, therefore I'd do the following:However I of course also want the task to re-run if an installed 3rd party dependency is updated (since
foo.js
could be consuming it), meaning I care aboutpackage.json
too.Question 2: For this scenario, would I either have to include
package.json
explicitly in the array, or is$TURBO_DEFAULT$
what I should be reaching for here? Or ispackage.json
always evaluated?i.e.
or this
Additional information
No response
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions