Skip to content

Commit

Permalink
fix: replace colors with chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Jan 9, 2022
1 parent 5e48a60 commit 75f3fc1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
"dependencies": {
"@malept/cross-spawn-promise": "^2.0.0",
"colors": "^1.3.3",
"chalk": "^4.0.0",
"debug": "^4.1.1",
"detect-libc": "^1.0.3",
"fs-extra": "^10.0.0",
Expand Down
6 changes: 3 additions & 3 deletions src/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node

import 'colors';
import chalk from 'chalk';
import * as fs from 'fs-extra';
import * as path from 'path';
import ora = require('ora');
Expand Down Expand Up @@ -49,8 +49,8 @@ if (process.argv.length === 3 && process.argv[2] === '--version') {
}

const handler = (err: Error): void => {
console.error('\nAn unhandled error occurred inside electron-rebuild'.red);
console.error(`${err.message}\n\n${err.stack}`.red);
console.error(chalk.red('\nAn unhandled error occurred inside electron-rebuild'));
console.error(chalk.red(`${err.message}\n\n${err.stack}`));
process.exit(-1);
};

Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1815,7 +1815,7 @@ [email protected]:
resolved "https://registry.yarnpkg.com/colors/-/colors-1.0.3.tgz#0433f44d809680fdeb60ed260f1b0c262e82a40b"
integrity sha1-BDP0TYCWgP3rYO0mDxsMJi6CpAs=

colors@^1.1.2, colors@^1.3.3:
colors@^1.1.2:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78"
integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA==
Expand Down

0 comments on commit 75f3fc1

Please sign in to comment.