You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This document specify a new command, that can be used to execute subcommands inside a project workspaces.
7
+
8
+
# Motivation
9
+
10
+
With the addition of the Workspace feature, it will become handy to be able to execute commands inside other workspaces than the one in the current directory.
11
+
12
+
# Detailed design
13
+
14
+
This RFC suggests to add the following commands:
15
+
16
+
## `yarn exec <binary-name> ...`
17
+
18
+
Execute a shell command inside the same environment than the one used when running scripts. For example, running `yarn exec env` will print something similar to this:
19
+
20
+
```
21
+
PWD=/path/to/project
22
+
npm_config_user_agent=yarn/0.23.4 npm/? node/v7.10.0 darwin x64
- We will still have the issue of requiring the `--` separator to forward any command line option (`yarn workspace test install -- --production`). It's an important issue, something we really should tackle sooner than later.
0 commit comments