Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit054c6a2

Browse files
committed
Require Node.js 20
1 parent7dd1173 commit054c6a2

File tree

3 files changed

+32
-35
lines changed

3 files changed

+32
-35
lines changed

‎.github/workflows/main.yml‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,11 @@ jobs:
1010
fail-fast:false
1111
matrix:
1212
node-version:
13-
-22
13+
-24
1414
-20
15-
-18
1615
steps:
17-
-uses:actions/checkout@v4
18-
-uses:actions/setup-node@v4
16+
-uses:actions/checkout@v5
17+
-uses:actions/setup-node@v6
1918
with:
2019
node-version:${{ matrix.node-version }}
2120
-run:npm install

‎index.test-d.ts‎

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,31 +22,27 @@ void openEditor(
2222
{editor:'vi'},
2323
);
2424

25-
expectType<EditorInfo>(
26-
getEditorInfo([
25+
expectType<EditorInfo>(getEditorInfo([
26+
'unicorn.js:5:3',
27+
{
28+
file:'readme.md',
29+
line:10,
30+
column:2,
31+
},
32+
newURL('file://path/to/file'),
33+
{
34+
file:newURL('file://path/to/file'),
35+
},
36+
]));
37+
38+
expectType<EditorInfo>(getEditorInfo(
39+
[
2740
'unicorn.js:5:3',
2841
{
2942
file:'readme.md',
3043
line:10,
3144
column:2,
3245
},
33-
newURL('file://path/to/file'),
34-
{
35-
file:newURL('file://path/to/file'),
36-
},
37-
]),
38-
);
39-
40-
expectType<EditorInfo>(
41-
getEditorInfo(
42-
[
43-
'unicorn.js:5:3',
44-
{
45-
file:'readme.md',
46-
line:10,
47-
column:2,
48-
},
49-
],
50-
{editor:'vi'},
51-
),
52-
);
46+
],
47+
{editor:'vi'},
48+
));

‎package.json‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
"url":"https://sindresorhus.com"
1212
},
1313
"type":"module",
14-
"exports":"./index.js",
15-
"types":"./index.d.ts",
14+
"exports": {
15+
"types":"./index.d.ts",
16+
"default":"./index.js"
17+
},
1618
"sideEffects":false,
1719
"engines": {
18-
"node":">=18"
20+
"node":">=20"
1921
},
2022
"scripts": {
2123
"test":"xo && ava && tsd"
@@ -50,14 +52,14 @@
5052
"nano"
5153
],
5254
"dependencies": {
53-
"env-editor":"^1.1.0",
54-
"execa":"^9.3.0",
55+
"env-editor":"^1.3.0",
56+
"execa":"^9.6.0",
5557
"line-column-path":"^4.0.0",
56-
"open":"^10.1.0"
58+
"open":"^11.0.0"
5759
},
5860
"devDependencies": {
59-
"ava":"^6.1.3",
60-
"tsd":"^0.31.1",
61-
"xo":"^0.58.0"
61+
"ava":"^6.4.1",
62+
"tsd":"^0.33.0",
63+
"xo":"^1.2.3"
6264
}
6365
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp