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 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
Original file line number Diff line number Diff line change @@ -10,4 +10,4 @@ asyncExitHook(async signal => {
1010 wait : 200 ,
1111} ) ;
1212
13- setInterval ( ( ) => { } , 1 << 30 ) ;
13+ setInterval ( ( ) => { } , 1e9 ) ;
Original file line number Diff line number Diff line change @@ -92,9 +92,9 @@ gracefulExit();
9292*/
9393export 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+ } ;
Original file line number Diff line number Diff line change 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"
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}
Original file line number Diff line number Diff line change 11import process from 'node:process' ;
22import test from 'ava' ;
3- import execa from 'execa' ;
3+ import { execa } from 'execa' ;
44import exitHook , { asyncExitHook } from './index.js' ;
55
66test ( 'main' , async t => {
You can’t perform that action at this time.
0 commit comments