Skip to content

Commit a2d139b

Browse files
committed
1 parent 193628e commit a2d139b

File tree

10 files changed

+20
-30
lines changed

10 files changed

+20
-30
lines changed

.dictionary.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ attw
44
bdougie
55
cefc
66
codecov
7-
colorette
87
commitlintrc
98
dedupe
109
defu

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@
9191
"@flex-development/toggle-pkg-type": "2.0.1",
9292
"@flex-development/tsconfig-utils": "2.0.1",
9393
"@flex-development/tutils": "6.0.0-alpha.18",
94-
"colorette": "2.0.20",
9594
"consola": "3.1.0",
9695
"cosmiconfig": "8.1.3",
9796
"exit-hook": "3.2.0",
9897
"fast-glob": "3.2.12",
99-
"pretty-bytes": "6.1.0"
98+
"pretty-bytes": "6.1.0",
99+
"tinyrainbow": "1.1.1"
100100
},
101101
"devDependencies": {
102102
"@arethetypeswrong/cli": "0.7.1",

src/__tests__/make.functional.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ import getPackageJson from '#tests/utils/get-package-json'
1111
import * as mlly from '@flex-development/mlly'
1212
import pathe from '@flex-development/pathe'
1313
import type { PackageJson } from '@flex-development/pkg-types'
14-
import * as color from 'colorette'
1514
import consola from 'consola'
1615
import type * as esbuild from 'esbuild'
1716
import { asyncExitHook as exitHook } from 'exit-hook'
17+
import color from 'tinyrainbow'
1818
import testSubject from '../make'
1919

2020
vi.mock('@flex-development/mlly')

src/cli/__tests__/app.module.functional.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import { ERR_MODULE_NOT_FOUND, type NodeError } from '@flex-development/errnode'
77
import * as mlly from '@flex-development/mlly'
88
import pathe from '@flex-development/pathe'
99
import { cast, template } from '@flex-development/tutils'
10-
import * as color from 'colorette'
1110
import { CommanderError } from 'commander'
1211
import consola from 'consola'
1312
import type * as esbuild from 'esbuild'
1413
import { fileURLToPath } from 'node:url'
14+
import color from 'tinyrainbow'
1515
import TestSubject from '../app.module'
1616

1717
vi.mock('esbuild')

src/cli/app.module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
import { cast, isArray, template } from '@flex-development/tutils'
77
import { Module } from '@nestjs/common'
8-
import * as color from 'colorette'
98
import type * as commander from 'commander'
109
import consola from 'consola'
1110
import type * as esbuild from 'esbuild'
11+
import color from 'tinyrainbow'
1212
import { MkbuildCommand } from './commands'
1313
import { HelpService, UtilityService } from './providers'
1414

src/make.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import {
1515
regexp,
1616
type Nullable
1717
} from '@flex-development/tutils'
18-
import * as color from 'colorette'
1918
import consola from 'consola'
2019
import type * as esbuild from 'esbuild'
2120
import { asyncExitHook as exitHook } from 'exit-hook'
2221
import { fileURLToPath } from 'node:url'
2322
import pb from 'pretty-bytes'
23+
import color from 'tinyrainbow'
2424
import loadBuildConfig from './config/load'
2525
import type { Config, Context, Result, Task } from './interfaces'
2626
import * as internal from './internal'

src/utils/__snapshots__/analyze-outputs.snap

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/utils/__tests__/analyze-outputs.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55

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

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

3233
// Expect
3334
expect(result).to.have.property('bytes').be.a('number')
34-
expect(result.analysis).toMatchSnapshot()
35+
expect(keys(outputs)).to.each.satisfy((outfile: string) => {
36+
return includes(result.analysis, outfile)
37+
})
3538
})
3639
})

src/utils/analyze-outputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

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

1111
/**
1212
* Generates a build analysis for the given `outputs`.

yarn.lock

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,7 +1431,6 @@ __metadata:
14311431
chai-quantifiers: "npm:1.0.17"
14321432
chai-string: "npm:1.5.0"
14331433
class-validator: "npm:0.14.0"
1434-
colorette: "npm:2.0.20"
14351434
commander: "npm:11.0.0"
14361435
consola: "npm:3.1.0"
14371436
conventional-changelog: "npm:4.0.0"
@@ -1482,6 +1481,7 @@ __metadata:
14821481
rxjs: "npm:8.0.0-alpha.9"
14831482
semver: "npm:7.5.4"
14841483
tempfile: "npm:5.0.0"
1484+
tinyrainbow: "npm:1.1.1"
14851485
trash-cli: "npm:5.0.0"
14861486
ts-dedent: "npm:2.2.0"
14871487
typescript: "npm:5.1.6"
@@ -4048,7 +4048,7 @@ __metadata:
40484048
languageName: node
40494049
linkType: hard
40504050

4051-
"colorette@npm:2.0.20, colorette@npm:^2.0.19":
4051+
"colorette@npm:^2.0.19":
40524052
version: 2.0.20
40534053
resolution: "colorette@npm:2.0.20"
40544054
checksum: 51a2b1cf140e120074178dd17ffdd4e349b7e84d2cb498f83978124ba0efc19d4d35c1859226f7a75ef0b368b0feafd10370927e871827af428b7500396af274
@@ -9935,6 +9935,13 @@ __metadata:
99359935
languageName: node
99369936
linkType: hard
99379937

9938+
"tinyrainbow@npm:1.1.1":
9939+
version: 1.1.1
9940+
resolution: "tinyrainbow@npm:1.1.1"
9941+
checksum: 73c4fcc1803aa27538e46b0ead8ffb9760561bb6e062448aba0c701b9d45074a049eb1b28e2f407ad638355a5d884e4712e02992190957246909a34a0c120fee
9942+
languageName: node
9943+
linkType: hard
9944+
99389945
"tinyspy@npm:^2.1.1":
99399946
version: 2.1.1
99409947
resolution: "tinyspy@npm:2.1.1"

0 commit comments

Comments
 (0)