From a3379f562250faef7bc113db36f8ab85090db4cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Mon, 19 Aug 2019 16:30:58 +0200 Subject: [PATCH] fix anymatch namespace issue --- packages/jest-haste-map/src/lib/FSEventsWatcher.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/jest-haste-map/src/lib/FSEventsWatcher.ts b/packages/jest-haste-map/src/lib/FSEventsWatcher.ts index 815020474a29..1dc6826fe81d 100644 --- a/packages/jest-haste-map/src/lib/FSEventsWatcher.ts +++ b/packages/jest-haste-map/src/lib/FSEventsWatcher.ts @@ -9,7 +9,7 @@ import * as fs from 'fs'; import * as path from 'path'; import {EventEmitter} from 'events'; -import anymatch from 'anymatch'; +import anymatch, {Matcher} from 'anymatch'; import {some as micromatchSome} from 'micromatch'; // eslint-disable-next-line import {Watcher} from 'fsevents'; @@ -40,7 +40,7 @@ type FsEventsWatcherEvent = */ class FSEventsWatcher extends EventEmitter { public readonly root: string; - public readonly ignored?: anymatch.Matcher; + public readonly ignored?: Matcher; public readonly glob: Array; public readonly dot: boolean; public readonly hasIgnore: boolean; @@ -65,7 +65,7 @@ class FSEventsWatcher extends EventEmitter { fileCallback: (normalizedPath: string, stats: fs.Stats) => void, endCallback: Function, errorCallback: Function, - ignored?: anymatch.Matcher, + ignored?: Matcher, ) { walker(dir) .filterDir( @@ -83,7 +83,7 @@ class FSEventsWatcher extends EventEmitter { dir: string, opts: { root: string; - ignored?: anymatch.Matcher; + ignored?: Matcher; glob: string | Array; dot: boolean; },