diff --git a/package.json b/package.json index 33632435..f655caf8 100644 --- a/package.json +++ b/package.json @@ -81,7 +81,7 @@ "typescript": ">=3.6.5" }, "dependencies": { - "minimatch": "^3.1.2" + "minimatch": "^10.0.1" }, "packageManager": "yarn@4.4.0+sha512.91d93b445d9284e7ed52931369bc89a663414e5582d00eea45c67ddc459a2582919eece27c412d6ffd1bd0793ff35399381cb229326b961798ce4f4cc60ddfdb" } diff --git a/src/types.ts b/src/types.ts index 6b63131b..00e8b807 100755 --- a/src/types.ts +++ b/src/types.ts @@ -1,7 +1,8 @@ import ts, { CompilerOptions, EmitHost, Pattern, SourceFile } from "typescript"; import { PluginConfig } from "ts-patch"; +import { Minimatch } from "minimatch"; + import { HarmonyFactory } from "./harmony"; -import { IMinimatch } from "minimatch"; /* ****************************************************************************************************************** */ // region: TS Types @@ -43,7 +44,7 @@ export interface TsTransformPathsContext { readonly elisionMap: Map>; readonly transformationContext: ts.TransformationContext; readonly rootDirs?: string[]; - readonly excludeMatchers: IMinimatch[] | undefined; + readonly excludeMatchers: Minimatch[] | undefined; readonly outputFileNamesCache: Map; readonly pathsPatterns: readonly (string | Pattern)[] | undefined; readonly emitHost: EmitHost; diff --git a/test/yarn.lock b/test/yarn.lock index c22adeac..b605fae8 100644 --- a/test/yarn.lock +++ b/test/yarn.lock @@ -6592,6 +6592,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^10.0.1": + version: 10.0.1 + resolution: "minimatch@npm:10.0.1" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 10c0/e6c29a81fe83e1877ad51348306be2e8aeca18c88fdee7a99df44322314279e15799e41d7cb274e4e8bb0b451a3bc622d6182e157dfa1717d6cda75e9cd8cd5d + languageName: node + linkType: hard + "minimatch@npm:^3.0.4, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -9255,7 +9264,7 @@ __metadata: version: 0.0.0-use.local resolution: "typescript-transform-paths@portal:../::locator=root-workspace-0b6124%40workspace%3A." dependencies: - minimatch: "npm:^3.1.2" + minimatch: "npm:^10.0.1" peerDependencies: typescript: ">=3.6.5" languageName: node diff --git a/yarn.lock b/yarn.lock index 3403020b..44031740 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1824,6 +1824,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:^10.0.1": + version: 10.0.1 + resolution: "minimatch@npm:10.0.1" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: 10c0/e6c29a81fe83e1877ad51348306be2e8aeca18c88fdee7a99df44322314279e15799e41d7cb274e4e8bb0b451a3bc622d6182e157dfa1717d6cda75e9cd8cd5d + languageName: node + linkType: hard + "minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -2664,7 +2673,7 @@ __metadata: changelogen: "npm:^0.5.5" eslint: "npm:9.x" globals: "npm:^15.9.0" - minimatch: "npm:^3.1.2" + minimatch: "npm:^10.0.1" prettier: "npm:^3.3.3" ts-patch: "npm:^3.2.1" typescript: "npm:^5.5.4"