Filter Pipeline Tasks Using Turborepo

Share this video with your friends

Send Tweet

You can set up all of your specific pipelines in the turbo.json file, or you can filter through your pipelines in the terminal. If we wanted to run the typecheck command in just the utils package, our command would look like this: npx turbo run typecheck --filter=@monorepo/utils. You can remove @monorepo as long as the utils package is unique.

Turborepo also gives you the option to filter your commands based on what files have changed on your branch using `--filter="[HEAD^1]".

Now that we know a bit more about Turborepo, we can edit all of the scripts that we build in the previous course to use turbo instead of npm.