Skip to content

Commit

Permalink
Drop strip-ansi (#1713)
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronMoat authored Oct 17, 2024
1 parent ab09736 commit dd0bad2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/healthy-actors-compare.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'skuba': minor
---

deps: Drop `strip-ansi` dependency in lieu of [`util.stripVTControlCharacters`](https://nodejs.org/api/util.html#utilstripvtcontrolcharactersstr)
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
"semantic-release": "^22.0.12",
"serialize-error": "^8.0.1",
"simple-git": "^3.5.0",
"strip-ansi": "^6.0.1",
"ts-dedent": "^2.2.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.2",
Expand Down
3 changes: 0 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/cli/lint/annotate/github/tsc.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import stripAnsi from 'strip-ansi';
import { stripVTControlCharacters as stripAnsi } from 'util';

import type * as GitHub from '../../../../api/github';
import type { StreamInterceptor } from '../../../lint/external';
Expand Down
3 changes: 1 addition & 2 deletions src/cli/lint/internalLints/refreshConfigFiles.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import path from 'path';
import { inspect } from 'util';
import { inspect, stripVTControlCharacters as stripAnsi } from 'util';

import { writeFile } from 'fs-extra';
import stripAnsi from 'strip-ansi';

import { Git } from '../../..';
import type { Logger } from '../../../utils/logging';
Expand Down
2 changes: 1 addition & 1 deletion src/cli/test/reporters/github/annotations.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import path from 'path';
import { stripVTControlCharacters as stripAnsi } from 'util';

import type { TestResult } from '@jest/test-result';
import stripAnsi from 'strip-ansi';
import dedent from 'ts-dedent';

import type * as GitHub from '../../../../api/github';
Expand Down

0 comments on commit dd0bad2

Please sign in to comment.