Skip to content

Commit 765f865

Browse files
committed
fix: use default import for minimatch
minimatch v10+ uses default export instead of named export
1 parent 3beabcc commit 765f865

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/filesystem/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import fs from "fs/promises";
1010
import { createReadStream } from "fs";
1111
import path from "path";
1212
import { z } from "zod";
13-
import { minimatch } from "minimatch";
13+
import minimatch from "minimatch";
1414
import { normalizePath, expandHome } from './path-utils.js';
1515
import { getValidRootDirectories } from './roots-utils.js';
1616
import {

src/filesystem/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import path from "path";
33
import os from 'os';
44
import { randomBytes } from 'crypto';
55
import { diffLines, createTwoFilesPatch } from 'diff';
6-
import { minimatch } from 'minimatch';
6+
import minimatch from 'minimatch';
77
import { normalizePath, expandHome } from './path-utils.js';
88
import { isPathWithinAllowedDirectories } from './path-validation.js';
99

0 commit comments

Comments
 (0)