Skip to content

Commit

Permalink
Merge branch 'main' into add-path
Browse files Browse the repository at this point in the history
  • Loading branch information
marchuffnagle committed Aug 30, 2023
2 parents a8b391e + e9b0d71 commit 96da67b
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 @@ -20,9 +20,9 @@ export interface ProgressData {
The absolute path of the deleted file or directory. It will not be present if nothing was deleted.
*/
readonly path?: string;
}
};

export interface Options extends GlobbyOptions {
export type Options = {
/**
Allow deleting the current working directory and outside.
Expand Down Expand Up @@ -67,7 +67,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 96da67b

Please sign in to comment.