这是indexloc提供的服务,不要输入任何密码
Skip to content

turbo watch does not detect changes to root files referenced in turbo.json inputs #11118

@skwinnik

Description

@skwinnik

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/skwinnik/turbo-watch-bug

Which canary version will you have in your reproduction?

2.6.1-canary.3

Environment information

❯ pnpm turbo info
turbo 2.6.1-canary.3

CLI:
   Version: 2.6.1-canary.3
   Path to executable: /Users/skwinnik/projects/turborepo-watch-bug/node_modules/.pnpm/turbo-darwin-arm64@2.6.1-canary.3/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm9

Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 7239
   Available CPU cores: 12

Environment:
   CI: None
   Terminal (TERM): xterm-256color
   Terminal program (TERM_PROGRAM): vscode
   Terminal program version (TERM_PROGRAM_VERSION): 2.0.77
   Shell (SHELL): /bin/zsh
   stdin: false

Expected behavior

pnpm turbo watch web#build should rebuild the web package when the external.json file changes.

Actual behavior

pnpm turbo watch web#build does not rebuild the web package when the external.json file changes.

To Reproduce

  1. Run pnpm turbo watch web#build
  2. Change the external.json file
  3. The web package should rebuild

Additional context

At the same time pnpm turbo run web#build works as expected. It rebuilds the web package when the external.json file changes upon running the command after changing the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions