diff --git a/package.json b/package.json index ba458cb..ba7f2fc 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,6 @@ "prettier": "^3.6.2", "prettier-plugin-package": "^1.4.0", "rewiremock": "^3.14.6", - "strip-ansi": "^7.1.0", "text-table": "^0.2.0", "tsx": "^4.20.3", "typescript": "^5.8.3", diff --git a/perf/perf.ts b/perf/perf.ts index e8f9828..9f31ede 100644 --- a/perf/perf.ts +++ b/perf/perf.ts @@ -1,11 +1,11 @@ import { readFile } from 'node:fs/promises'; import { join } from 'node:path'; +import { stripVTControlCharacters as stripAnsi } from 'node:util'; import chalk from 'chalk'; import { globby } from 'globby'; import perfy from 'perfy'; import valueParser from 'postcss-value-parser'; -import stripAnsi from 'strip-ansi'; import table from 'text-table'; import { parse } from '../dist/index.js'; @@ -73,8 +73,8 @@ interface TestResult { ours > theirs ? chalk.red(ours.toString()) : theirs > ours - ? chalk.green(ours.toString()) - : ours.toString(), + ? chalk.green(ours.toString()) + : ours.toString(), theirs.toString() ]); } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c315a44..b3f352c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -87,9 +87,6 @@ importers: rewiremock: specifier: ^3.14.6 version: 3.14.6 - strip-ansi: - specifier: ^7.1.0 - version: 7.1.0 text-table: specifier: ^0.2.0 version: 0.2.0