Skip to content

Commit 41ec280

Browse files
authored
refactor: remove strip-ansi (#1433)
1 parent 1030265 commit 41ec280

5 files changed

Lines changed: 7 additions & 27 deletions

File tree

packages/stylelint/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,13 @@
3131
},
3232
"dependencies": {
3333
"@wyw-in-js/shared": "^0.5.3",
34-
"@wyw-in-js/transform": "^0.5.3",
35-
"strip-ansi": "^5.2.0"
34+
"@wyw-in-js/transform": "^0.5.3"
3635
},
3736
"devDependencies": {
3837
"@types/node": "^17.0.39"
3938
},
4039
"engines": {
41-
"node": ">=16.0.0"
40+
"node": ">=16.11.0"
4241
},
4342
"publishConfig": {
4443
"access": "public"

packages/stylelint/src/preprocessor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
2+
13
import type { Replacements } from '@wyw-in-js/shared';
24
import { asyncResolveFallback } from '@wyw-in-js/shared';
35
import { transform } from '@wyw-in-js/transform';
4-
import stripAnsi from 'strip-ansi';
56

67
type Errors = {
78
[key: string]:

packages/testkit/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"debug": "^4.3.4",
3333
"dedent": "^1.5.1",
3434
"esbuild": "^0.15.16",
35-
"strip-ansi": "^5.2.0",
3635
"typescript": "^5.2.2"
3736
},
3837
"devDependencies": {
@@ -57,7 +56,7 @@
5756
"ts-jest": "^29.1.1"
5857
},
5958
"engines": {
60-
"node": ">=16.0.0"
59+
"node": ">=16.11.0"
6160
},
6261
"publishConfig": {
6362
"access": "public"

packages/testkit/src/babel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable no-restricted-syntax */
22
import { readFileSync } from 'fs';
3+
import { stripVTControlCharacters as stripAnsi } from 'node:util';
34
import { dirname, join, resolve, sep } from 'path';
45

56
import * as babel from '@babel/core';
@@ -23,7 +24,6 @@ import type {
2324
Stage,
2425
} from '@wyw-in-js/transform';
2526
import dedent from 'dedent';
26-
import stripAnsi from 'strip-ansi';
2727

2828
import serializer from './__utils__/linaria-snapshot-serializer';
2929

pnpm-lock.yaml

Lines changed: 1 addition & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)