diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5609829..08bdbd5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,9 +10,9 @@ jobs: fail-fast: false matrix: node-version: + - 20 - 18 - 16 - - 14 os: - ubuntu-latest - macos-latest diff --git a/index.d.ts b/index.d.ts index 3fcb0f1..e32977f 100644 --- a/index.d.ts +++ b/index.d.ts @@ -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. */ @@ -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. @@ -62,7 +62,7 @@ export interface Options extends GlobbyOptions { ``` */ readonly onProgress?: (progress: ProgressData) => void; -} +} & GlobbyOptions; /** Delete files and directories using glob patterns. diff --git a/package.json b/package.json index f4de0ed..affa935 100644 --- a/package.json +++ b/package.json @@ -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" + } } }