Prevent Turborepo Exiting Early on Failing Tasks

Share this video with your friends

Social Share Links

Send Tweet
Published 2 years ago
Updated 2 years ago

By default, Turborepo will stop its execution if it runs into an error. We may not want that if we want Turborepo to continue in the projects that don't have an error. We can do this by adding the --continue flag to the end of our command.

Instructor: [0:00] By default, Turborepo will stop its execution if it finds an error. For instance, if we change this toBe(5) and we run npx turbo run test, it will exit early. [0:16] Sometimes, you don't want this. You want to continue even though something fails. You can have the --continue flag. It will continue even though something broke. For instance, in this case, libs/util exit, but it continued with the execution.

[0:33] To recap, you can make Turborepo not exit early when it finds an error if you add the --continue flag.

egghead
egghead
~ 2 hours ago

Member comments are a way for members to communicate, interact, and ask questions about a lesson.

The instructor or someone from the community might respond to your question Here are a few basic guidelines to commenting on egghead.io

Be on-Topic

Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contact us at support@egghead.io.

Avoid meta-discussion

  • This was great!
  • This was horrible!
  • I didn't like this because it didn't match my skill level.
  • +1 It will likely be deleted as spam.

Code Problems?

Should be accompanied by code! Codesandbox or Stackblitz provide a way to share code and discuss it in context

Details and Context

Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!

Markdown supported.
Become a member to join the discussionEnroll Today