mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
21 lines
417 B
JavaScript
21 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 === '') {
|
||
|
|
console.error('Please specify a release summary!');
|
||
|
|
|
||
|
|
// eslint-disable-next-line unicorn/no-process-exit
|
||
|
|
process.exit(1);
|
||
|
|
}
|
||
|
|
|
||
|
|
return `${intro}\n\n${markdown}`;
|
||
|
|
};
|