1
0
mirror of https://github.com/videojs/video.js.git synced 2025-02-04 11:43:27 +02:00

chore(grunt): fix getting changelog by switching to npm-run (#3687)

shelljs-nodecli is having trouble getting the conventional-changelog package because the package name and binary name are different.

Fixes #3683
This commit is contained in:
Pat O'Neill 2016-10-18 14:42:10 -04:00 committed by Gary Katsevman
parent e932061024
commit 8845bd36c1
2 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
import {gruntCustomizer, gruntOptionsMaker} from './options-customizer.js';
import chg from 'chg';
import nodeCli from 'shelljs-nodecli';
import npmRun from 'npm-run';
module.exports = function(grunt) {
require('time-grunt')(grunt);
@ -32,7 +32,10 @@ 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,
encoding: 'utf8'
})
},
},
files: {

View File

@ -98,9 +98,9 @@
"karma-sinon": "^1.0.5",
"load-grunt-tasks": "^3.1.0",
"markdown-table": "^1.0.0",
"npm-run": "^4.1.0",
"proxyquireify": "^3.0.0",
"qunitjs": "^1.23.1",
"shelljs-nodecli": "^0.1.1",
"sinon": "^1.16.1",
"time-grunt": "^1.1.1",
"uglify-js": "~2.7.3",