()
| 49 | } |
| 50 | |
| 51 | function updateCheck() { |
| 52 | const notifier = updateNotifier({pkg}); |
| 53 | const message = []; |
| 54 | |
| 55 | if (notifier.update) { |
| 56 | message.push( |
| 57 | 'Update available: ' + chalk.green.bold(notifier.update.latest) + chalk.gray(' (current: ' + notifier.update.current + ')'), |
| 58 | 'Run ' + chalk.magenta('npm install -g ' + pkg.name) + ' to update.', |
| 59 | ); |
| 60 | console.log(yosay(message.join(' '), {maxLength: stringLength(message[0])})); |
| 61 | } |
| 62 | } |
| 63 | |
| 64 | async function pre() { |
| 65 | // Debugging helper |
no outgoing calls
no test coverage detected
searching dependent graphs…