From a204e64145401310ba2820692421a6d25d6400a1 Mon Sep 17 00:00:00 2001 From: IKatsuba Date: Fri, 11 Jun 2021 10:16:43 +0300 Subject: [PATCH] fix: add missing multimatch --- libs/ng-morph/package.json | 1 + libs/ng-morph/project/classes/file-system.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libs/ng-morph/package.json b/libs/ng-morph/package.json index e93efbda..ed41d2cc 100644 --- a/libs/ng-morph/package.json +++ b/libs/ng-morph/package.json @@ -7,6 +7,7 @@ }, "dependencies": { "minimatch": "3.0.4", + "multimatch": "5.0.0", "ts-morph": "10.0.2", "jsonc-parser": "3.0.0" }, diff --git a/libs/ng-morph/project/classes/file-system.ts b/libs/ng-morph/project/classes/file-system.ts index 08c487ee..9f332bf0 100644 --- a/libs/ng-morph/project/classes/file-system.ts +++ b/libs/ng-morph/project/classes/file-system.ts @@ -9,7 +9,7 @@ import { UpdateRecorder } from './update-recorder'; import { FileSystemHost } from 'ts-morph'; import { basename, join } from 'path'; -import * as miltimatch from 'multimatch'; +import * as multimatch from 'multimatch'; import { DevkitFileSystem } from './devkit-file-system'; /** @@ -145,7 +145,7 @@ export class NgCliFileSystem implements FileSystemHost { } globSync(patterns: ReadonlyArray): string[] { - return miltimatch(this.getAllFilePaths(), patterns as string[]); + return multimatch(this.getAllFilePaths(), patterns as string[]); } isCaseSensitive(): boolean {