Skip to content

'nx watch --all --initialRun' does not work #32281

@omasakun

Description

@omasakun

Current Behavior

If you specify both the all and initialRun options when running nx watch, initialRun will have no effect.

Expected Behavior

The command should be called once at the beginning even if there are no file changes.

GitHub Repo

Use any repo

Steps to Reproduce

  1. Run nx watch --initialRun --all --verbose -- echo executed

Nx Report

Node           : 22.15.0
OS             : linux-x64
Native Target  : x86_64-linux
pnpm           : 10.10.0

nx          : 21.3.11
typescript  : 5.9.2

Failure Logs

Package Manager Version

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions