From 10162fb474be899d123a618998a05945f950f17a Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 23 May 2024 22:58:14 -0700 Subject: [PATCH] export Ignore --- src/index.ts | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/src/index.ts b/src/index.ts index f04a2407..10215b4c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,6 +10,26 @@ import type { import { Glob } from './glob.js' import { hasMagic } from './has-magic.js' +export { escape, unescape } from 'minimatch' +export type { + FSOption, + Path, + WalkOptions, + WalkOptionsWithFileTypesTrue, + WalkOptionsWithFileTypesUnset, +} from 'path-scurry' +export { Glob } from './glob.js' +export type { + GlobOptions, + GlobOptionsWithFileTypesFalse, + GlobOptionsWithFileTypesTrue, + GlobOptionsWithFileTypesUnset, +} from './glob.js' +export { hasMagic } from './has-magic.js' +export { Ignore } from './ignore.js' +export type { IgnoreLike } from './ignore.js' +export type { MatchStream } from './walker.js' + /** * Syncronous form of {@link globStream}. Will read all the matches as fast as * you consume them, even all in a single tick if you consume them immediately, @@ -184,28 +204,6 @@ export const sync = Object.assign(globSync, { iterate: globIterateSync, }) -/* c8 ignore start */ -export { escape, unescape } from 'minimatch' -export { Glob } from './glob.js' -export type { - GlobOptions, - GlobOptionsWithFileTypesFalse, - GlobOptionsWithFileTypesTrue, - GlobOptionsWithFileTypesUnset, -} from './glob.js' -export { hasMagic } from './has-magic.js' -export type { IgnoreLike } from './ignore.js' -export type { MatchStream } from './walker.js' -export type { - Path, - WalkOptionsWithFileTypesTrue, - WalkOptionsWithFileTypesUnset, - WalkOptions, - FSOption, -} from 'path-scurry' - -/* c8 ignore stop */ - export const glob = Object.assign(glob_, { glob: glob_, globSync,