Skip to content

Commit 49b88a9

Browse files
committed
refactor: cleanup incompatible deps
1 parent f1cdffc commit 49b88a9

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,13 @@
5151
"@esm2cjs/indent-string": "^5.0.0",
5252
"@messageformat/core": "^3.4.0",
5353
"@prettier/eslint": "npm:prettier-eslint@^17.0.0-alpha.0",
54-
"arrify": "^3.0.0",
55-
"boolify": "^1.0.1",
5654
"camelcase-keys": "^9.1.3",
5755
"chalk-cjs": "^5.2.0",
5856
"common-tags": "^1.8.2",
5957
"core-js": "^3.42.0",
6058
"eslint": "^9.26.0",
6159
"find-up": "^5.0.0",
62-
"get-stdin": "^9.0.0",
60+
"get-stdin": "^8.0.0",
6361
"glob": "^10.3.10",
6462
"ignore": "^7.0.4",
6563
"lodash.memoize": "^4.1.2",

src/parser.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,20 @@
11
import path from 'node:path';
22

3-
import arrify from 'arrify';
43
import { oneLine, stripIndent } from 'common-tags';
54
import yargs from 'yargs';
65

6+
const arrify = value => {
7+
if (value == null) {
8+
return [];
9+
}
10+
11+
if (Array.isArray(value)) {
12+
return value;
13+
}
14+
15+
return [value];
16+
};
17+
718
const parser = yargs
819
.usage(
920
stripIndent`

yarn.lock

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3789,13 +3789,6 @@ __metadata:
37893789
languageName: node
37903790
linkType: hard
37913791

3792-
"arrify@npm:^3.0.0":
3793-
version: 3.0.0
3794-
resolution: "arrify@npm:3.0.0"
3795-
checksum: 10c0/2e26601b8486f29780f1f70f7ac05a226755814c2a3ab42e196748f650af1dc310cd575a11dd4b9841c70fd7460b2dd2b8fe6fb7a3375878e2660706efafa58e
3796-
languageName: node
3797-
linkType: hard
3798-
37993792
"async-function@npm:^1.0.0":
38003793
version: 1.0.0
38013794
resolution: "async-function@npm:1.0.0"
@@ -4015,13 +4008,6 @@ __metadata:
40154008
languageName: node
40164009
linkType: hard
40174010

4018-
"boolify@npm:^1.0.1":
4019-
version: 1.0.1
4020-
resolution: "boolify@npm:1.0.1"
4021-
checksum: 10c0/255b28d587854f5c47073c68d98c1c5b009a6bdcdc163f2793deb8da927ce43e7b8a89b955414c22d0192979f97ece80e953336606cd4de214ffaec19a4e39ed
4022-
languageName: node
4023-
linkType: hard
4024-
40254011
"brace-expansion@npm:^1.1.7":
40264012
version: 1.1.11
40274013
resolution: "brace-expansion@npm:1.1.11"
@@ -6669,7 +6655,7 @@ __metadata:
66696655
languageName: node
66706656
linkType: hard
66716657

6672-
"get-stdin@npm:9.0.0, get-stdin@npm:^9.0.0":
6658+
"get-stdin@npm:9.0.0":
66736659
version: 9.0.0
66746660
resolution: "get-stdin@npm:9.0.0"
66756661
checksum: 10c0/7ef2edc0c81a0644ca9f051aad8a96ae9373d901485abafaabe59fd347a1c378689d8a3d8825fb3067415d1d09dfcaa43cb9b9516ecac6b74b3138b65a8ccc6b
@@ -6690,6 +6676,13 @@ __metadata:
66906676
languageName: node
66916677
linkType: hard
66926678

6679+
"get-stdin@npm:^8.0.0":
6680+
version: 8.0.0
6681+
resolution: "get-stdin@npm:8.0.0"
6682+
checksum: 10c0/b71b72b83928221052f713b3b6247ebf1ceaeb4ef76937778557537fd51ad3f586c9e6a7476865022d9394b39b74eed1dc7514052fa74d80625276253571b76f
6683+
languageName: node
6684+
linkType: hard
6685+
66936686
"get-stream@npm:^5.1.0":
66946687
version: 5.2.0
66956688
resolution: "get-stream@npm:5.2.0"
@@ -10688,8 +10681,6 @@ __metadata:
1068810681
"@prettier/eslint": "npm:prettier-eslint@^17.0.0-alpha.0"
1068910682
"@types/jest": "npm:^29.5.14"
1069010683
all-contributors-cli: "npm:^6.26.1"
10691-
arrify: "npm:^3.0.0"
10692-
boolify: "npm:^1.0.1"
1069310684
camelcase-keys: "npm:^9.1.3"
1069410685
chalk-cjs: "npm:^5.2.0"
1069510686
clean-pkg-json: "npm:^1.3.0"
@@ -10699,7 +10690,7 @@ __metadata:
1069910690
eslint-plugin-jest: "npm:^28.11.0"
1070010691
eslint-plugin-node-dependencies: "npm:^1.0.1"
1070110692
find-up: "npm:^5.0.0"
10702-
get-stdin: "npm:^9.0.0"
10693+
get-stdin: "npm:^8.0.0"
1070310694
glob: "npm:^10.3.10"
1070410695
ignore: "npm:^7.0.4"
1070510696
jest: "npm:^29.7.0"

0 commit comments

Comments
 (0)