UNPKG

relion

Version:

Release workflow helper for Node.js projects.

19 lines (17 loc) 504 B
import chalk from 'chalk'; import checkpoint from './checkpoint.js'; import figures from 'figures'; import runExec from './run-exec.js'; export default function (args, hookName) { const scripts = args.scripts; if (!scripts || !scripts[hookName]) return Promise.resolve(); const command = scripts[hookName]; checkpoint(args, 'Running lifecycle script "%s"', [hookName]); checkpoint( args, '- execute command: "%s"', [command], chalk.blue(figures.info), ); return runExec(args, command); }