Skip to content

Commit

Permalink
build(deps): bump chalk from 2.4.2 to 4.1.0 (#3)
Browse files Browse the repository at this point in the history
Bumps [chalk](https://github.com/chalk/chalk) from 2.4.2 to 4.1.0.
- [Release notes](https://github.com/chalk/chalk/releases)
- [Commits](chalk/chalk@v2.4.2...v4.1.0)

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] committed Sep 9, 2020
1 parent 0321a51 commit 60a3615
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bugs": "https://github.com/oclif/core/issues",
"dependencies": {
"@oclif/linewrap": "^1.0.0",
"chalk": "^2.4.2",
"chalk": "^4.1.0",
"clean-stack": "^3.0.0",
"cli-ux": "^5.1.0",
"debug": "^4.1.1",
Expand Down Expand Up @@ -85,7 +85,7 @@
"lint": "eslint . --ext .ts --config .eslintrc",
"posttest": "yarn lint",
"prepack": "yarn run build",
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
"test": "mocha --forbid-only \"test/**/*.test.ts\" --no-color",
"version": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md",
"pretest": "yarn build --noEmit && tsc -p test --noEmit"
},
Expand Down
2 changes: 1 addition & 1 deletion src/errors/errors/cli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// tslint:disable no-implicit-dependencies

import Chalk from 'chalk'
import * as Chalk from 'chalk'
import Clean = require('clean-stack')
import Indent = require('indent-string')
import * as Wrap from 'wrap-ansi'
Expand Down
8 changes: 4 additions & 4 deletions src/help/command.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Config from '../config'
import chalk from 'chalk'
import * as Chalk from 'chalk'
import indent = require('indent-string')
import stripAnsi = require('strip-ansi')

Expand All @@ -10,13 +10,13 @@ import {castArray, compact, sortBy, template} from './util'
const {
underline,
bold,
} = chalk
} = Chalk
let {
dim,
} = chalk
} = Chalk

if (process.env.ConEmuANSI === 'ON') {
dim = chalk.gray
dim = Chalk.gray
}

const wrap = require('wrap-ansi')
Expand Down
4 changes: 2 additions & 2 deletions src/help/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Config from '../config'
import {error} from '../errors'
import chalk from 'chalk'
import * as Chalk from 'chalk'
import indent = require('indent-string')
import stripAnsi = require('strip-ansi')

Expand All @@ -14,7 +14,7 @@ import {getHelpClass} from './util'
const wrap = require('wrap-ansi')
const {
bold,
} = chalk
} = Chalk

export interface HelpOptions {
all?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/help/root.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as Config from '../config'
import chalk from 'chalk'
import * as Chalk from 'chalk'
import indent = require('indent-string')
import stripAnsi = require('strip-ansi')

Expand All @@ -9,7 +9,7 @@ import {compact, template} from './util'
const wrap = require('wrap-ansi')
const {
bold,
} = chalk
} = Chalk

export default class RootHelp {
render: (input: string) => string
Expand Down
2 changes: 1 addition & 1 deletion src/parser/help.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Chalk from 'chalk'
import * as Chalk from 'chalk'

import Deps from './deps'
import {IFlag} from './flags'
Expand Down
3 changes: 0 additions & 3 deletions test/parser/help.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import {expect} from 'chai'
import chalk from 'chalk'

import * as flags from '../../src/parser/flags'
import {flagUsages} from '../../src/parser/help'

chalk.enabled = false

describe('flagUsage', () => {
it('shows usages', () => {
const f = [
Expand Down
3 changes: 0 additions & 3 deletions test/parser/parse.test.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
/* eslint-disable max-nested-callbacks */
import {expect} from 'chai'
import chalk from 'chalk'

import {flags, parse} from '../../src/parser'

chalk.enabled = false

describe('parse', () => {
it('--bool', () => {
const out = parse(['--bool'], {
Expand Down

0 comments on commit 60a3615

Please sign in to comment.