← All interview questions

Skill Zuno · skillzunos.com · Fullstack Pro

Turborepo interview questions

Prepare for Turborepo interviews on Skill Zuno. This practice book covers Turborepo interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Turborepo on Skill Zuno

Also see the Turborepo tutorial.

Turborepo is a high-performance build system for JavaScript and TypeScript monorepos, maintained by Vercel. It runs package.json scripts across workspace packages in dependency order, in parallel, and caches outputs locally and remotely so unchanged work is never repeated. Interviews cover turbo.json pipelines, task dependencies, caching inputs and outputs, filtering, remote caching and setting up a monorepo with internal packages.

Sample Turborepo interview questions

What does dependsOn: ['^build'] mean?

Before running a package's build, Turborepo first runs build in every package it depends on. The caret means dependencies' tasks, not the package's own.

Why declare outputs for a task?

Turborepo only saves and restores the files listed in outputs, such as dist/** or .next/**. Without them, a cache hit would replay logs but not restore the build files.

Why can a missing environment variable cause wrong cache hits?

If a build reads an environment variable not included in the task's hash, changing it does not invalidate the cache, so Turborepo may replay an output built with the old value. Declare it in env.

How do you run tasks only for changed packages in CI?

Use a filter such as turbo run test --filter=...[origin/main], which selects packages changed since main plus the packages that depend on them.

What is remote caching?

Storing task outputs in a shared cache, so a build done by one developer or CI run can be reused by everyone else, often cutting CI time dramatically.

What you can practice

  • Turborepo interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack Pro topics alongside Turborepo on skillzunos.com

More Fullstack Pro interview questions

All interview questions