Skip to content

Commit

Permalink
build(deps): replace colorette with tinyrainbow
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Aug 9, 2023
1 parent 193628e commit a2d139b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 30 deletions.
1 change: 0 additions & 1 deletion .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ attw
bdougie
cefc
codecov
colorette
commitlintrc
dedupe
defu
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@
"@flex-development/toggle-pkg-type": "2.0.1",
"@flex-development/tsconfig-utils": "2.0.1",
"@flex-development/tutils": "6.0.0-alpha.18",
"colorette": "2.0.20",
"consola": "3.1.0",
"cosmiconfig": "8.1.3",
"exit-hook": "3.2.0",
"fast-glob": "3.2.12",
"pretty-bytes": "6.1.0"
"pretty-bytes": "6.1.0",
"tinyrainbow": "1.1.1"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.7.1",
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/make.functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import getPackageJson from '#tests/utils/get-package-json'
import * as mlly from '@flex-development/mlly'
import pathe from '@flex-development/pathe'
import type { PackageJson } from '@flex-development/pkg-types'
import * as color from 'colorette'
import consola from 'consola'
import type * as esbuild from 'esbuild'
import { asyncExitHook as exitHook } from 'exit-hook'
import color from 'tinyrainbow'
import testSubject from '../make'

vi.mock('@flex-development/mlly')
Expand Down
2 changes: 1 addition & 1 deletion src/cli/__tests__/app.module.functional.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import { ERR_MODULE_NOT_FOUND, type NodeError } from '@flex-development/errnode'
import * as mlly from '@flex-development/mlly'
import pathe from '@flex-development/pathe'
import { cast, template } from '@flex-development/tutils'
import * as color from 'colorette'
import { CommanderError } from 'commander'
import consola from 'consola'
import type * as esbuild from 'esbuild'
import { fileURLToPath } from 'node:url'
import color from 'tinyrainbow'
import TestSubject from '../app.module'

vi.mock('esbuild')
Expand Down
2 changes: 1 addition & 1 deletion src/cli/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

import { cast, isArray, template } from '@flex-development/tutils'
import { Module } from '@nestjs/common'
import * as color from 'colorette'
import type * as commander from 'commander'
import consola from 'consola'
import type * as esbuild from 'esbuild'
import color from 'tinyrainbow'
import { MkbuildCommand } from './commands'
import { HelpService, UtilityService } from './providers'

Expand Down
2 changes: 1 addition & 1 deletion src/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import {
regexp,
type Nullable
} from '@flex-development/tutils'
import * as color from 'colorette'
import consola from 'consola'
import type * as esbuild from 'esbuild'
import { asyncExitHook as exitHook } from 'exit-hook'
import { fileURLToPath } from 'node:url'
import pb from 'pretty-bytes'
import color from 'tinyrainbow'
import loadBuildConfig from './config/load'
import type { Config, Context, Result, Task } from './interfaces'
import * as internal from './internal'
Expand Down
19 changes: 0 additions & 19 deletions src/utils/__snapshots__/analyze-outputs.snap

This file was deleted.

5 changes: 4 additions & 1 deletion src/utils/__tests__/analyze-outputs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/

import type { OutputMetadata } from '#src/types'
import { includes, keys } from '@flex-development/tutils'
import testSubject from '../analyze-outputs'

describe('unit:utils/analyzeOutputs', () => {
Expand Down Expand Up @@ -31,6 +32,8 @@ describe('unit:utils/analyzeOutputs', () => {

// Expect
expect(result).to.have.property('bytes').be.a('number')
expect(result.analysis).toMatchSnapshot()
expect(keys(outputs)).to.each.satisfy((outfile: string) => {
return includes(result.analysis, outfile)
})
})
})
2 changes: 1 addition & 1 deletion src/utils/analyze-outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import type { OutputMetadata } from '#src/types'
import { entries, join, template } from '@flex-development/tutils'
import * as color from 'colorette'
import pb from 'pretty-bytes'
import color from 'tinyrainbow'

/**
* Generates a build analysis for the given `outputs`.
Expand Down
11 changes: 9 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,6 @@ __metadata:
chai-quantifiers: "npm:1.0.17"
chai-string: "npm:1.5.0"
class-validator: "npm:0.14.0"
colorette: "npm:2.0.20"
commander: "npm:11.0.0"
consola: "npm:3.1.0"
conventional-changelog: "npm:4.0.0"
Expand Down Expand Up @@ -1482,6 +1481,7 @@ __metadata:
rxjs: "npm:8.0.0-alpha.9"
semver: "npm:7.5.4"
tempfile: "npm:5.0.0"
tinyrainbow: "npm:1.1.1"
trash-cli: "npm:5.0.0"
ts-dedent: "npm:2.2.0"
typescript: "npm:5.1.6"
Expand Down Expand Up @@ -4048,7 +4048,7 @@ __metadata:
languageName: node
linkType: hard

"colorette@npm:2.0.20, colorette@npm:^2.0.19":
"colorette@npm:^2.0.19":
version: 2.0.20
resolution: "colorette@npm:2.0.20"
checksum: 51a2b1cf140e120074178dd17ffdd4e349b7e84d2cb498f83978124ba0efc19d4d35c1859226f7a75ef0b368b0feafd10370927e871827af428b7500396af274
Expand Down Expand Up @@ -9935,6 +9935,13 @@ __metadata:
languageName: node
linkType: hard

"tinyrainbow@npm:1.1.1":
version: 1.1.1
resolution: "tinyrainbow@npm:1.1.1"
checksum: 73c4fcc1803aa27538e46b0ead8ffb9760561bb6e062448aba0c701b9d45074a049eb1b28e2f407ad638355a5d884e4712e02992190957246909a34a0c120fee
languageName: node
linkType: hard

"tinyspy@npm:^2.1.1":
version: 2.1.1
resolution: "tinyspy@npm:2.1.1"
Expand Down

0 comments on commit a2d139b

Please sign in to comment.