Skip to content

--watch-path combined with --run fails #58113

Open
@Gopikrishna19

Description

@Gopikrishna19

Version

22.15.0

Platform

Darwin **** 24.3.0 Darwin Kernel Version 24.3.0: Thu Jan  2 20:24:23 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6020 arm64

Subsystem

No response

What steps will reproduce the bug?

Running --watch-path with --run fails.

$ node --watch-path=./src --run build
# node: --watch requires specifying a file

How often does it reproduce? Is there a required condition?

Always

What is the expected behavior? Why is that the expected behavior?

It should run the script just like it would run a file, or it should run the script without the watch. The behaviour watch behaviour and the execution behaviour should be independent of each other.

What do you see instead?

It fails

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    docIssues and PRs related to the documentations.good first issueIssues that are suitable for first-time contributors.watch-modeIssues and PRs related to watch mode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions