Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(watch): warn if daemon is disabled (#9407)
### Description Closes #9401 `turbo watch` cannot function without the daemon, we should warn users of this if they have tried to disable the daemon. We could error if the daemon is disabled, but that would lead to awkward behavior if it is disabled in `turbo.json`. It's possible to want the daemon disabled for `turbo run`, but still want to use `turbo watch`. ### Testing Instructions Attempt running watch with an explicit request to disable the daemon: ``` [1 olszewski@chriss-mbp] /Users/olszewski/code/vercel/turborepo $ turbo_dev --no-daemon watch @turbo/types#build WARNING No locally installed `turbo` found. Using version: 2.2.4-canary.8. turbo 2.2.4-canary.8 WARNING daemon is required for watch, ignoring request to disable daemon • Packages in scope: @turbo-internal/top-issues-gh-action, @turbo/benchmark, @turbo/codemod, @turbo/eslint-config, @turbo/exe-stub, @turbo/gen, @turbo/telemetry, @turbo/test-utils, @turbo/tsconfig, @turbo/types, @turbo/utils, @turbo/workspaces, @turborepo-examples-tests/basic, @turborepo-examples-tests/design-system, @turborepo-examples-tests/kitchen-sink, @turborepo-examples-tests/non-monorepo, @turborepo-examples-tests/with-berry, @turborepo-examples-tests/with-changesets, @turborepo-examples-tests/with-npm, @turborepo-examples-tests/with-react-native-web, @turborepo-examples-tests/with-rollup, @turborepo-examples-tests/with-svelte, @turborepo-examples-tests/with-tailwind, @turborepo-examples-tests/with-vite, @turborepo-examples-tests/with-yarn, cargo-sweep-action, cli, create-turbo, eslint-config-turbo, eslint-plugin-turbo, prysk, turbo-ignore, turbo-vsc, turborepo-examples, turborepo-repository, turborepo-tests-helpers, turborepo-tests-integration • Running @turbo/types#build in 37 packages • Remote caching enabled ┌ @turbo/types#build > cache miss, executing 305999608c9295f1 │ │ │ > @turbo/types@2.2.4-canary.8 build /Users/olszewski/code/vercel/turborepo/packages/turbo-types │ > tsc && pnpm generate-schema │ │ │ > @turbo/types@2.2.4-canary.8 generate-schema /Users/olszewski/code/vercel/turborepo/packages/turbo-types │ > tsx scripts/generate-schema.ts └────> × watch interrupted due to signal ```
- Loading branch information