Skip to content

Commit

Permalink
feat: swapping out the colors library for chalk (#396)
Browse files Browse the repository at this point in the history
* feat: swapping our colors for chalk

* chore: reverting some unnnecessary changes
  • Loading branch information
erunion authored Dec 2, 2021
1 parent 660b925 commit 7f252ae
Show file tree
Hide file tree
Showing 14 changed files with 486 additions and 4,486 deletions.
6 changes: 5 additions & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,15 @@ updates:
prefix: chore(deps)
prefix-development: chore(deps-dev)
ignore:
# chalk is now an ESM package and can't be used here without a rewrite.
- dependency-name: chalk
versions:
- ">= 5"
# node-fetch is now an ESM package and can't be used here without a rewrite.
- dependency-name: node-fetch
versions:
- ">= 3"
# node-fetch is now an ESM package and can't be used here without a rewrite.
# table-layout is now an ESM package and can't be used here without a rewrite.
- dependency-name: table-layout
versions:
- ">= 3"
2 changes: 0 additions & 2 deletions __tests__/index.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
require('colors');

const nock = require('nock');
const cli = require('../src');
const { version } = require('../package.json');
Expand Down
12 changes: 7 additions & 5 deletions bin/rdme
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 => {
Expand All @@ -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`
)
);
}
}
Expand Down
Loading

0 comments on commit 7f252ae

Please sign in to comment.