mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
23 lines
473 B
JavaScript
23 lines
473 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!');
|
|
|
|
// eslint-disable-next-line unicorn/no-process-exit
|
|
process.exit(1);
|
|
}
|
|
|
|
return `${intro}\n\n${markdown}`;
|
|
};
|