Skip to content

Commit

Permalink
Drop colors in favor of @colors/colors
Browse files Browse the repository at this point in the history
The `colors` package is no longer maintained and a weird background
story.

Previous maintainers created a new fork of the package.
Marak/colors.js#340
  • Loading branch information
codegaze committed Mar 18, 2022
1 parent 26b2231 commit ae39a07
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"dependencies": {
"@babel/parser": "^7.13.10",
"@babel/traverse": "^7.13.0",
"@colors/colors": "^1.5.0",
"@oclif/command": "^1.8.0",
"@oclif/config": "^1.17.0",
"@oclif/errors": "^1.3.4",
Expand All @@ -31,7 +32,6 @@
"angular-html-parser": "^1.7.1",
"axios": "^0.24.0",
"cli-ux": "^5.5.1",
"colors": "1.4.0",
"ejs": "^3.1.6",
"glob": "^7.1.6",
"lodash": "^4.17.21",
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/invalidate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint no-shadow: 0 */

require('colors');
require('@colors/colors');
const { Command, flags } = require('@oclif/command');
const { cli } = require('cli-ux');
const { invalidateCDS } = require('../api/invalidate');
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/push.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable no-await-in-loop */
/* eslint no-shadow: 0 */

require('colors');
require('@colors/colors');
const fs = require('fs');
const path = require('path');
const _ = require('lodash');
Expand Down
3 changes: 1 addition & 2 deletions packages/cli/test/fixtures/variables.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function foo() {
log(t(inner));
log(t(`${inner},${outer}`))

const empty;
const empty = undefined;
let nonConst = 'should not be visible';
const constMadeOfNonConsts = 'again, it ' + nonConst;
const constMadeOfTemplateLiterals = `this one is ` + nonConst;
Expand All @@ -35,4 +35,3 @@ function foo() {
}

module.exports = foo;

0 comments on commit ae39a07

Please sign in to comment.