-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Use npm-run instead of shelljs-nodecli #3687
Conversation
I guess this is fine? I've never had problems with shelljs-nodecli before. And it's been working fine for me, so, not sure exactly what the problem was. |
The problem is that the package name and the CLI name don't match. shelljs-nodecli assumes they do; so, when you look for |
is there any reason not to switch to vanilla |
I don't think that would work on Windows and I believe there are cases where |
LGTM |
fwiw, shelljs-nodecli is picking up the local conventional-changelog bin for me... |
Or maybe not. |
@@ -32,7 +32,7 @@ module.exports = function(grunt) { | |||
release: { | |||
tag_name: 'v'+ version.full, | |||
name: version.full, | |||
body: nodeCli.exec('conventional-changelog', '-p videojs', {silent: true}).output | |||
body: npmRun.execSync('conventional-changelog -p videojs', {silent: true}) |
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.
This needs an encoding: 'utf8'
options because a buffer is returned by default.
Description
Fixes #3683
Specific Changes proposed
Stop using shelljs-nodecli and start using npm-run! The reason this fails is that shelljs-nodecli makes the assumption that the package and its executable are the same name (e.g. the
grunt
command is exposed by thegrunt
package).Requirements Checklist