Skip to content

Commit

Permalink
fix: cast the ignore field to the array
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmlnc committed Jul 14, 2023
1 parent c089430 commit 2a0c808
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@ export default class Settings {
if (this.stats) {
this.objectMode = true;
}

// Remove the cast to the array in the next major (#404).
this.ignore = ([] as Pattern[]).concat(this.ignore);
}

private _getValue<T>(option: T | undefined, value: T): T {
Expand Down

0 comments on commit 2a0c808

Please sign in to comment.