Skip to content

Specify working directory for node --run #57489

@flakey5

Description

@flakey5

What is the problem this feature will solve?

Currently node --run doesn't allow you to specify the working directory to run the command in. This is needed for things like running the new api docs tooling (re #57343)

What is the feature you are proposing to solve the problem?

Something similar to npm's --prefix flag (i.e. npx --prefix <working dir> ... or npm --prefix <working dir> ...)

What alternatives have you considered?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions