### 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)
Current Behavior
npm exec -ws -c 'npm whoami'fails becauseworkspacesis passed into the subprocess as an environment varnpm exec -w foo -c 'npm whoami'fails becauseworkspaceis passed into the subprocess as an environment varExpected Behavior
npm execshould not pass onworkspaceorworkspacesconfig into the envExit Criteria
npm execthat explicitly outlines the absence of those envs from the subprocess--wswherever-wscurrently is marked (ex. examples)