Skip to content

fix: running npm commands in npm exec #313

@darcyclarke

Description

@darcyclarke

Current Behavior

  • npm exec -ws -c 'npm whoami' fails because workspaces is passed into the subprocess as an environment var
  • npm exec -w foo -c 'npm whoami' fails because workspace is passed into the subprocess as an environment var

Expected Behavior

  • npm exec should not pass on workspace or workspaces config into the env

Exit Criteria

  • bug should be fixed
  • documentation should exist for npm exec that explicitly outlines the absence of those envs from the subprocess
  • documentation should be updated to use --ws wherever -ws currently is marked (ex. examples)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions