mirror of
https://github.com/morhetz/gruvbox.git
synced 2025-11-16 23:33:38 -05:00
13 lines
513 B
JavaScript
13 lines
513 B
JavaScript
const chalk = require('chalk')
|
|
const checkpoint = require('./checkpoint')
|
|
const figures = require('figures')
|
|
const runExec = require('./run-exec')
|
|
|
|
module.exports = function (args, hookName, newVersion, hooks, cb) {
|
|
if (!hooks[hookName]) return Promise.resolve()
|
|
var command = hooks[hookName] + ' --new-version="' + newVersion + '"'
|
|
checkpoint(args, 'Running lifecycle hook "%s"', [hookName])
|
|
checkpoint(args, '- hook command: "%s"', [command], chalk.blue(figures.info))
|
|
return runExec(args, command)
|
|
}
|