Skip to content

Commit bea99b2

Browse files
committed
Meta tweaks
1 parent 46baeec commit bea99b2

File tree

5 files changed

+15
-12
lines changed

5 files changed

+15
-12
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 20
1314
- 18
14-
- 16
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: actions/setup-node@v3

fixtures/signal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ asyncExitHook(async signal => {
1010
wait: 200,
1111
});
1212

13-
setInterval(() => {}, 1 << 30);
13+
setInterval(() => {}, 1e9);

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ gracefulExit();
9292
*/
9393
export function gracefulExit(signal?: number): void;
9494

95-
export interface Options {
95+
export type Options = {
9696
/**
9797
The amount of time in milliseconds that the `onExit` function is expected to take. When multiple async handlers are registered, the longest `wait` time will be used.
9898
*/
99-
wait: number;
100-
}
99+
readonly wait: number;
100+
};

package.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@
1111
"url": "https://sindresorhus.com"
1212
},
1313
"type": "module",
14-
"exports": "./index.js",
14+
"exports": {
15+
"types": "./index.d.ts",
16+
"default": "./index.js"
17+
},
1518
"engines": {
16-
"node": ">=18.0.0"
19+
"node": ">=18"
1720
},
1821
"scripts": {
1922
"test": "xo && ava && tsd"
@@ -41,9 +44,9 @@
4144
"asynchronous"
4245
],
4346
"devDependencies": {
44-
"ava": "^3.15.0",
45-
"execa": "^5.1.1",
46-
"tsd": "^0.17.0",
47-
"xo": "^0.44.0"
47+
"ava": "^5.3.1",
48+
"execa": "^8.0.1",
49+
"tsd": "^0.28.1",
50+
"xo": "^0.56.0"
4851
}
4952
}

test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import process from 'node:process';
22
import test from 'ava';
3-
import execa from 'execa';
3+
import {execa} from 'execa';
44
import exitHook, {asyncExitHook} from './index.js';
55

66
test('main', async t => {

0 commit comments

Comments
 (0)