/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
3.0.2
release.js
23 строки
473 B
CHaBou
Fix lint
05 окт 2017, 22:04
Не верифицирован
05 окт 2017, 22:04
8aa7d90
Код
Авторство
О чём код?
// Packages const {prompt} = require('inquirer'); module.exports = async markdown => { const answers = await prompt([ { name: 'intro', message: 'One-Line Release Summary' } ]); const {intro} = answers; if (intro === '') { //eslint-disable-next-line no-console console.error('Please specify a release summary!'); // eslint-disable-next-line unicorn/no-process-exit process.exit(1); } return `${intro}\n\n${markdown}`; };