Created
March 14, 2019 02:11
-
-
Save jokester/cc8fadf12a6d95206cc9ee2f6fb4a304 to your computer and use it in GitHub Desktop.
disable clear of terminal in next.js 8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// silly way to prevent next.js clearing screen | |
// see https://github.com/zeit/next.js/blob/41eaa9cf5ade8f233439a80f7e846ccb00ef3f18/packages/next/build/output/store.ts#L24-L25 | |
const readline = require('readline'); | |
readline.cursorTo = readline.clearScreenDown = () => {}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment