When spawned process succeeds, ChildProcessUtilities will call callback with _null_ as first arg (https://github.com/lerna/lerna/blob/master/src/ChildProcessUtilities.js#L63), which causes DiffCommand to fail: https://github.com/lerna/lerna/blob/master/src/commands/DiffCommand.js#L39 (as `null !== 0`). Probably `if(code)` will be enough.
When spawned process succeeds, ChildProcessUtilities will call callback with null as first arg (https://github.com/lerna/lerna/blob/master/src/ChildProcessUtilities.js#L63), which causes DiffCommand to fail: https://github.com/lerna/lerna/blob/master/src/commands/DiffCommand.js#L39 (as
null !== 0).Probably
if(code)will be enough.