hyper/release.js
Labhansh Agrawal b52d8152bf Upgrade eslint to v6 and add TypeScript linting (#3843)
* Upgrade eslint to v6 and add TypeScript linting

* Fix pr checks


Co-authored-by: Benjamin Staneck <Stanzilla@users.noreply.github.com>
2019-10-03 02:56:50 +02:00

22 lines
417 B
JavaScript

// 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}`;
};