Skip to content

Commit

Permalink
export Ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed May 24, 2024
1 parent f0bd1e8 commit 10162fb
Showing 1 changed file with 20 additions and 22 deletions.
42 changes: 20 additions & 22 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 10162fb

Please sign in to comment.