Prevent Turborepo Exiting Early on Failing Tasks

Share this video with your friends

Social Share Links

Send Tweet

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.