Skip to content

Commit

Permalink
Fix minimatch use
Browse files Browse the repository at this point in the history
  • Loading branch information
whitphx committed Jan 14, 2025
1 parent 977ae8b commit cdd7b38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vscode-stlite/src/web/extension.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as path from "path";
import * as vscode from "vscode";
import { parseRequirementsTxt, PromiseDelegate } from "@stlite/common";
import minimatch from "minimatch";
import { Minimatch } from "minimatch";

declare const STLITE_VERSION: string; // This is set by webpack during the build

Expand All @@ -15,7 +15,7 @@ const fileWatcherPattern =
const fileWatcherIgnorePattern =
typeof ignoreFilesConfig === "string" ? ignoreFilesConfig : undefined;
const fileWatcherIgnoreMatch = fileWatcherIgnorePattern
? new minimatch.Minimatch(fileWatcherIgnorePattern)
? new Minimatch(fileWatcherIgnorePattern)
: undefined;
const requirementsTxtPath = "requirements.txt";
const maxEntrypointCandidates = 1000;
Expand Down

0 comments on commit cdd7b38

Please sign in to comment.