File tree Expand file tree Collapse file tree 5 files changed +15
-12
lines changed Expand file tree Collapse file tree 5 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 10
10
fail-fast : false
11
11
matrix :
12
12
node-version :
13
+ - 20
13
14
- 18
14
- - 16
15
15
steps :
16
16
- uses : actions/checkout@v3
17
17
- uses : actions/setup-node@v3
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ asyncExitHook(async signal => {
10
10
wait : 200 ,
11
11
} ) ;
12
12
13
- setInterval ( ( ) => { } , 1 << 30 ) ;
13
+ setInterval ( ( ) => { } , 1e9 ) ;
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ gracefulExit();
92
92
*/
93
93
export function gracefulExit ( signal ?: number ) : void ;
94
94
95
- export interface Options {
95
+ export type Options = {
96
96
/**
97
97
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.
98
98
*/
99
- wait : number ;
100
- }
99
+ readonly wait : number ;
100
+ } ;
Original file line number Diff line number Diff line change 11
11
"url" : " https://sindresorhus.com"
12
12
},
13
13
"type" : " module" ,
14
- "exports" : " ./index.js" ,
14
+ "exports" : {
15
+ "types" : " ./index.d.ts" ,
16
+ "default" : " ./index.js"
17
+ },
15
18
"engines" : {
16
- "node" : " >=18.0.0 "
19
+ "node" : " >=18"
17
20
},
18
21
"scripts" : {
19
22
"test" : " xo && ava && tsd"
41
44
" asynchronous"
42
45
],
43
46
"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"
48
51
}
49
52
}
Original file line number Diff line number Diff line change 1
1
import process from 'node:process' ;
2
2
import test from 'ava' ;
3
- import execa from 'execa' ;
3
+ import { execa } from 'execa' ;
4
4
import exitHook , { asyncExitHook } from './index.js' ;
5
5
6
6
test ( 'main' , async t => {
You can’t perform that action at this time.
0 commit comments