-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DX-185] Removed NPM as dependency #686
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I see some tests are failing, I'll merge it when all goes green
}; | ||
|
||
const executeCommand = (options, callback) => { | ||
const cmd = spawn('npm', options.command, { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool here we could hook with yarn support easily in the future
cmd.on('error', () => callback('error')); | ||
cmd.on('close', code => { | ||
const err = code !== 0 ? code : null; | ||
executeCommand(cmdOptions, err => |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That seems like a lot of duplication just to handle a single vs multiple deps install, coudln't we make into a single method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, a small question, everything else lgtm
Closes #593, #622