Feature/lerna exec#151
Conversation
As opposed to 'lerna run', which runs scripts defined in package.json, exec will let you execute an inbuilt npm command directly in each package, e.g. - `lerna exec rebuild` - `lerna exec publish` - `lerna exec upgrade`
It should run any command, not just an npm command.
| @@ -1,4 +1,5 @@ | |||
| import child from "child_process"; | |||
| import objectAssign from "object-assign"; | |||
There was a problem hiding this comment.
Isn't it possible to use Object.assign directly? (I'm not sure whether babel polyfills it or not, to be honest)
There was a problem hiding this comment.
I guess it depends on the runtime - object-assign was available already, so I just used it.
There was a problem hiding this comment.
We aren't using Babel polyfill or Babel runtime atm so no but we could
There was a problem hiding this comment.
I need it to support older versions of node too
|
Where is the logic that handles everything before |
|
@eirslett it seems to be handled by |
|
This will also fix #150 |
|
#152 should be favored to this one. |
|
Moving to #152 |
|
This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This implements a proper
lerna execcommand that allows you to both pass flags to the lerna runtime and run commands in each package with multiple parameters, e.g.:lerna exec --debug -- ls -la node_modulescloses #130
cc @thejameskyle
Also, after this is merged I'd like to enhance #145 to also change the target packages of
lerna exec.