-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
multiple glob patterns #287
Conversation
import {MatchKind} from './internal-match-kind' | ||
import {Pattern} from './internal-pattern' | ||
|
||
const IS_WINDOWS = process.platform === 'win32' | ||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this moved
/** | ||
* Used to match files and directories | ||
*/ | ||
export interface Globber { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the new interface for getting search paths and globbing for files
|
||
/** | ||
* Returns files and directories matching the specified glob pattern. | ||
* Constructs a globber |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
now this file is only used to export the interfaces (Globber
, GlobOptions
) and instantiate a globber (create
)
everything else moved into internal-globber.ts
/** | ||
* Constructs a DefaultGlobber | ||
*/ | ||
static async create( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this create
function is new, everything else in this file basically moved into this class (was in glob.ts)
This change enables multiple patterns