Skip to content

Commit e9b0d71

Browse files
committedAug 30, 2023
Fix CI
Closes #156
1 parent 9e17de8 commit e9b0d71

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed
 

‎.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
node-version:
13+
- 20
1314
- 18
1415
- 16
15-
- 14
1616
os:
1717
- ubuntu-latest
1818
- macos-latest

‎index.d.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {Options as GlobbyOptions} from 'globby';
1+
import {type Options as GlobbyOptions} from 'globby';
22

3-
export interface ProgressData {
3+
export type ProgressData = {
44
/**
55
Deleted files and directories count.
66
*/
@@ -15,9 +15,9 @@ export interface ProgressData {
1515
Completed percentage. A value between `0` and `1`.
1616
*/
1717
readonly percent: number;
18-
}
18+
};
1919

20-
export interface Options extends GlobbyOptions {
20+
export type Options = {
2121
/**
2222
Allow deleting the current working directory and outside.
2323
@@ -62,7 +62,7 @@ export interface Options extends GlobbyOptions {
6262
```
6363
*/
6464
readonly onProgress?: (progress: ProgressData) => void;
65-
}
65+
} & GlobbyOptions;
6666

6767
/**
6868
Delete files and directories using glob patterns.

‎package.json

+6-1
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,15 @@
6464
"make-dir": "^3.1.0",
6565
"tempy": "^3.0.0",
6666
"tsd": "^0.22.0",
67-
"xo": "^0.50.0"
67+
"xo": "^0.56.0"
6868
},
6969
"ava": {
7070
"serial": true,
7171
"workerThreads": false
72+
},
73+
"xo": {
74+
"rules": {
75+
"unicorn/prefer-string-replace-all": "off"
76+
}
7277
}
7378
}

0 commit comments

Comments
 (0)
Please sign in to comment.