-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: swapping out the colors library for chalk (#396)
* feat: swapping our colors for chalk * chore: reverting some unnnecessary changes
- Loading branch information
Showing
14 changed files
with
486 additions
and
4,486 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#! /usr/bin/env node | ||
require('colors'); | ||
const chalk = require('chalk'); | ||
|
||
require('../src')(process.argv.slice(2)) | ||
.then(msg => { | ||
|
@@ -11,12 +11,14 @@ require('../src')(process.argv.slice(2)) | |
const err = e; | ||
|
||
if ('message' in err) { | ||
console.error(err.message.red); | ||
console.error(chalk.red(err.message)); | ||
} else { | ||
console.error( | ||
`Yikes, something went wrong! Please try again and if the problem persists, get in touch with our support team at ${ | ||
`[email protected]`.underline | ||
}.\n`.red | ||
chalk.red( | ||
`Yikes, something went wrong! Please try again and if the problem persists, get in touch with our support team at ${chalk.underline( | ||
'[email protected]' | ||
)}.\n` | ||
) | ||
); | ||
} | ||
} | ||
|
Oops, something went wrong.