libs/scully/src/lib/utils/exitHandler.js
// so the program will not close.
so the program will not close.
so the program will not close .
function exitHandler(options, exitCode) {
        for (const handler of exitHandlers) {
            handler();
        }
        if (exitCode || exitCode === 0) {
            if (typeof exitCode !== 'number') {
                console.log(exitCode);
            }
        }
        if (options.exit) {
            if (browser) {
                browser.close().then(() => process.exit(exitCode));
            }
            else {
                process.exit(exitCode);
            }
        }
    }
function exitHandler ( options , exitCode ) { for ( const handler of exitHandlers ) { handler ( ) ; } if ( exitCode || exitCode === 0 ) { if ( typeof exitCode !== 'number' ) { console . log ( exitCode ) ; } } if ( options . exit ) { if ( browser ) { browser . close ( ) . then ( ( ) => process . exit ( exitCode ) ) ; } else { process . exit ( exitCode ) ; } } }
so the program will not close.
so the program will not close .
/** not a 'clean' exit log to console */ // TODO: kill the server here. (but only if started from scully, not when started from another process)