Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
Closes #156
  • Loading branch information
sindresorhus committed Aug 30, 2023
1 parent 9e17de8 commit e9b0d71
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ jobs:
fail-fast: false
matrix:
node-version:
- 20
- 18
- 16
- 14
os:
- ubuntu-latest
- macos-latest
Expand Down
10 changes: 5 additions & 5 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {Options as GlobbyOptions} from 'globby';
import {type Options as GlobbyOptions} from 'globby';

export interface ProgressData {
export type ProgressData = {
/**
Deleted files and directories count.
*/
Expand All @@ -15,9 +15,9 @@ export interface ProgressData {
Completed percentage. A value between `0` and `1`.
*/
readonly percent: number;
}
};

export interface Options extends GlobbyOptions {
export type Options = {
/**
Allow deleting the current working directory and outside.
Expand Down Expand Up @@ -62,7 +62,7 @@ export interface Options extends GlobbyOptions {
```
*/
readonly onProgress?: (progress: ProgressData) => void;
}
} & GlobbyOptions;

/**
Delete files and directories using glob patterns.
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,15 @@
"make-dir": "^3.1.0",
"tempy": "^3.0.0",
"tsd": "^0.22.0",
"xo": "^0.50.0"
"xo": "^0.56.0"
},
"ava": {
"serial": true,
"workerThreads": false
},
"xo": {
"rules": {
"unicorn/prefer-string-replace-all": "off"
}
}
}

0 comments on commit e9b0d71

Please sign in to comment.