/
githubmirror
/
hyper
Обзор
Документация
Войти
/
githubmirror
/
hyper
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
3.1.0-canary.2
release.js
22 строки
417 B
Labhansh Agrawal
Upgrade eslint to v6 and add TypeScript linting (#3843)
03 окт 2019, 03:56
03 окт 2019, 03:56
b52d815
Код
Авторство
О чём код?
// 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!'); process.exit(1); } return `${intro}\n\n${markdown}`; };