.release-it.js
/**
 * Invoked by npm run scripts.
 * 
 * Prompt the user to enter release notes which are embedded into the
 * conventional changelog entry in the process of running release-it afterwards.
 */
Invoked by npm run scripts.

Prompt the user to enter release notes which are embedded into the
conventional changelog entry in the process of running release-it afterwards.
Invoked by npm run scripts . Prompt the user to enter release notes which are embedded into the conventional changelog entry in the process of running release - it afterwards .
function promptReleaseNotes() {
    const lines = [];
    let i = 1;
    let line;
    readlineSync.setDefaultOptions({ keepWhitespace: true });
    console.log("Enter release notes (line by line, to finish press ENTER key only)");
    while (line = readlineSync.question(`Line ${i++}: `)) {
        lines.push(line);
    }
    console.log("...");
    if (lines.length > 0) {
        fs.writeFileSync(releaseNotesFile, lines.join("\n"), "utf-8");
    }
}
function promptReleaseNotes ( ) { const lines = [ ] ; let i = 1 ; let line ; readlineSync . setDefaultOptions ( { keepWhitespace : true } ) ; console . log ( "Enter release notes (line by line, to finish press ENTER key only)" ) ; while ( line = readlineSync . question ( ` ${ i ++ } ` ) ) { lines . push ( line ) ; } console . log ( "..." ) ; if ( lines . length > 0 ) { fs . writeFileSync ( releaseNotesFile , lines . join ( "\n" ) , "utf-8" ) ; } }
Invoked by npm run scripts.
Invoked by npm run scripts .