Skip to content

Commit

Permalink
[Refactor] use colors instead of chalk
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 7, 2022
1 parent 5a63833 commit 324a287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
4 changes: 2 additions & 2 deletions bin.js
Expand Up @@ -8,7 +8,7 @@ const getProjectTempDir = require('npm-lockfile/getProjectTempDir');
const finder = require('find-package-json');
const promisify = require('util.promisify');
const semver = require('semver');
const chalk = require('chalk');
const colors = require('colors/safe');

const path = require('path');
const { existsSync } = require('fs');
Expand Down Expand Up @@ -46,7 +46,7 @@ if (npmIsGood && (hasPkgLock || hasShrink || isFix)) {
npx(parsed);
} else {
if (!npmIsGood) {
console.log(chalk.blue(`npm is v${npmV}; we need ${npmNeeded}; installing npm in a temp dir...`));
console.log(colors.blue(`npm is v${npmV}; we need ${npmNeeded}; installing npm in a temp dir...`));
}
Promise.all([
getLockfile(pkg, undefined, { npmNeeded }),
Expand Down
8 changes: 1 addition & 7 deletions package.json
Expand Up @@ -35,7 +35,7 @@
},
"homepage": "https://github.com/ljharb/aud#readme",
"dependencies": {
"chalk": "^2.4.2",
"colors": "^1.4.0",
"find-package-json": "^1.2.0",
"fs-copy-file": "^2.1.2",
"libnpx": "^10.2.4",
Expand All @@ -62,11 +62,5 @@
"commitLimit": false,
"backfillLimit": false,
"hideCredit": true
},
"greenkeeper": {
"ignore": [
"chalk",
"semver"
]
}
}

0 comments on commit 324a287

Please sign in to comment.