Skip to content

Commit 6ccad76

Browse files
committed
fix(filesystem): use named import for minimatch
The minimatch module doesn't have a default export, so we need to use the named import syntax instead. Fixes TypeScript compilation error: error TS2613: Module has no default export. Did you mean to use 'import { minimatch } from "minimatch"' instead?
1 parent 765f865 commit 6ccad76

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)