Skip to content

Commit bf835d1

Browse files
authored
feat: replace picocolors with ansis (#16)
1 parent b5ef478 commit bf835d1

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,14 @@
6363
"@antfu/utils": "^8.1.0",
6464
"@types/debug": "^4.1.12",
6565
"@types/node": "^22.13.1",
66+
"ansis": "^3.12.0",
6667
"bumpp": "^10.0.2",
6768
"eslint": "^9.19.0",
6869
"esno": "^4.8.0",
6970
"execa": "^9.5.2",
7071
"find-up": "^7.0.0",
7172
"lint-staged": "^15.4.3",
72-
"picocolors": "^1.1.1",
7373
"simple-git-hooks": "^2.11.1",
74-
"strip-ansi": "^7.1.0",
7574
"ts-node": "^10.9.2",
7675
"typescript": "^5.7.3",
7776
"unbuild": "^3.3.1",

pnpm-lock.yaml

+9-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/run-matrix.mjs

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ import fs from 'node:fs/promises'
22
import process from 'node:process'
33
/* eslint-disable no-console */
44
import { fileURLToPath } from 'node:url'
5+
import c from 'ansis'
56
import { execaCommand } from 'execa'
6-
import c from 'picocolors'
7-
import strip from 'strip-ansi'
87

98
const pkg = JSON.parse(await fs.readFile(new URL('../package.json', import.meta.url), 'utf8'))
109

@@ -120,5 +119,5 @@ ${runtimes.map(runtime => `| ${runtime} | ${loaders.map((loader) => {
120119
readme = readme.replace(/(<!-- TABLE_START -->)[\s\S]*(<!-- TABLE_END -->)/, `$1\n\n${table}\n\n$2`)
121120
await fs.writeFile('README.md', readme, 'utf8')
122121

123-
await fs.writeFile('test/matrix-output.txt', strip(list.join('\n')), 'utf-8')
122+
await fs.writeFile('test/matrix-output.txt', c.strip(list.join('\n')), 'utf-8')
124123
}

0 commit comments

Comments
 (0)