diff --git a/x-pack/gulpfile.js b/x-pack/gulpfile.js index fcb1b8ece3a3..edf8d3c59c3b 100644 --- a/x-pack/gulpfile.js +++ b/x-pack/gulpfile.js @@ -12,7 +12,6 @@ const gulp = require('gulp'); const mocha = require('gulp-mocha'); const multiProcess = require('gulp-multi-process'); const fancyLog = require('fancy-log'); -const ansiColors = require('ansi-colors'); const pkg = require('./package.json'); const buildDir = path.resolve(__dirname, 'build'); @@ -23,7 +22,6 @@ const coverageDir = path.resolve(__dirname, 'coverage'); const gulpHelpers = { buildDir, buildTarget, - colors: ansiColors, coverageDir, log: fancyLog, mocha, diff --git a/x-pack/package.json b/x-pack/package.json index a98be879b6c5..f9b2f1c8f493 100644 --- a/x-pack/package.json +++ b/x-pack/package.json @@ -103,7 +103,6 @@ "@types/tinycolor2": "^1.4.1", "@types/uuid": "^3.4.4", "abab": "^1.0.4", - "ansi-colors": "^3.0.5", "ansicolors": "0.3.2", "axios": "^0.19.0", "babel-jest": "^24.9.0", diff --git a/x-pack/tasks/report.js b/x-pack/tasks/report.js index 462290e7b7b7..a7e1a2e31de5 100644 --- a/x-pack/tasks/report.js +++ b/x-pack/tasks/report.js @@ -6,15 +6,16 @@ import buildVersion from './helpers/build_version'; import gitInfo from './helpers/git_info'; +import chalk from 'chalk'; -export default (gulp, { log, colors, pkg }) => { +export default (gulp, { log, pkg }) => { gulp.task('report', () => { return gitInfo() .then(function (info) { - log('Package Name', colors.yellow(pkg.name)); - log('Version', colors.yellow(buildVersion(pkg))); - log('Build Number', colors.yellow(info.number)); - log('Build SHA', colors.yellow(info.sha)); + log('Package Name', chalk.yellow(pkg.name)); + log('Version', chalk.yellow(buildVersion(pkg))); + log('Build Number', chalk.yellow(info.number)); + log('Build SHA', chalk.yellow(info.sha)); }); }); }; diff --git a/yarn.lock b/yarn.lock index 09a4191c1498..cac62cab3327 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4811,11 +4811,6 @@ ansi-colors@^3.0.0: resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.2.1.tgz#9638047e4213f3428a11944a7d4b31cba0a3ff95" integrity sha512-Xt+zb6nqgvV9SWAVp0EG3lRsHcbq5DDgqjPPz6pwgtj6RKz65zGXMNa82oJfOSBA/to6GmRP7Dr+6o+kbApTzQ== -ansi-colors@^3.0.5: - version "3.0.5" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-3.0.5.tgz#cb9dc64993b64fd6945485f797fc3853137d9a7b" - integrity sha512-VVjWpkfaphxUBFarydrQ3n26zX5nIK7hcbT3/ielrvwDDyBBjuh2vuSw1P9zkPq0cfqvdw7lkYHnu+OLSfIBsg== - ansi-cyan@^0.1.1: version "0.1.1" resolved "https://registry.yarnpkg.com/ansi-cyan/-/ansi-cyan-0.1.1.tgz#538ae528af8982f28ae30d86f2f17456d2609873"