feat(planning): grille hebdomadaire complète avec API et filtres
- Connexion API via proxy Angular (résolution CORS, base path /api) - Import CSS ng-zorro global pour les modales et composants - Filtres Camion/Show câblés sur l'affichage de la grille - Camions affichés via TrucksService (linkés au show du même créneau) - Panneau de détails : spectacles + camions du jour sélectionné - Modale de création de spectacle stylisée avec fond et centrage - Positionnement précis des events à la minute dans leur créneau - Auto-scroll vers l'heure courante au chargement - Ligne "maintenant" sur la colonne du jour actuel - Régénération des services OpenAPI (nouveaux noms de types) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+216
-154
@@ -3,12 +3,10 @@
|
||||
Match files using the patterns the shell uses.
|
||||
|
||||
The most correct and second fastest glob implementation in
|
||||
JavaScript. (See [**Comparison to Other JavaScript Glob
|
||||
Implementations**](#comparisons-to-other-fnmatchglob-implementations)
|
||||
at the bottom of this readme.)
|
||||
JavaScript. (See **Comparison to Other JavaScript Glob
|
||||
Implementations** at the bottom of this readme.)
|
||||
|
||||

|
||||

|
||||
|
||||
## Usage
|
||||
|
||||
@@ -18,9 +16,8 @@ Install with npm
|
||||
npm i glob
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> The npm package name is _not_ `node-glob` that's a
|
||||
> different thing that was abandoned years ago. Just `glob`.
|
||||
**Note** the npm package name is _not_ `node-glob` that's a
|
||||
different thing that was abandoned years ago. Just `glob`.
|
||||
|
||||
```js
|
||||
// load using import
|
||||
@@ -72,9 +69,8 @@ for (const file of g2) {
|
||||
}
|
||||
|
||||
// you can also pass withFileTypes: true to get Path objects
|
||||
// these are like a fs.Dirent, but with some more added powers
|
||||
// check out https://isaacs.github.io/path-scurry/classes/PathBase.html
|
||||
// for more info on their API
|
||||
// these are like a Dirent, but with some more added powers
|
||||
// check out http://npm.im/path-scurry for more info on their API
|
||||
const g3 = new Glob('**/baz/**', { withFileTypes: true })
|
||||
g3.stream().on('data', path => {
|
||||
console.log(
|
||||
@@ -139,22 +135,137 @@ const newFiles = await glob('**', {
|
||||
})
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> Glob patterns should always use `/` as a path separator,
|
||||
> even on Windows systems, as `\` is used to escape glob
|
||||
> characters. If you wish to use `\` as a path separator _instead
|
||||
> of_ using it as an escape character on Windows platforms, you may
|
||||
> set `windowsPathsNoEscape:true` in the options. In this mode,
|
||||
> special glob characters cannot be escaped, making it impossible
|
||||
> to match a literal `*` `?` and so on in filenames.
|
||||
**Note** Glob patterns should always use `/` as a path separator,
|
||||
even on Windows systems, as `\` is used to escape glob
|
||||
characters. If you wish to use `\` as a path separator _instead
|
||||
of_ using it as an escape character on Windows platforms, you may
|
||||
set `windowsPathsNoEscape:true` in the options. In this mode,
|
||||
special glob characters cannot be escaped, making it impossible
|
||||
to match a literal `*` `?` and so on in filenames.
|
||||
|
||||
## Command Line Interface
|
||||
|
||||
The glob CLI has been moved to the `glob-bin` package, and must
|
||||
be installed separately, as of version 13.
|
||||
|
||||
```
|
||||
npm install glob-bin
|
||||
$ glob -h
|
||||
|
||||
Usage:
|
||||
glob [options] [<pattern> [<pattern> ...]]
|
||||
|
||||
Expand the positional glob expression arguments into any matching file system
|
||||
paths found.
|
||||
|
||||
-c<command> --cmd=<command>
|
||||
Run the command provided, passing the glob expression
|
||||
matches as arguments.
|
||||
|
||||
-A --all By default, the glob cli command will not expand any
|
||||
arguments that are an exact match to a file on disk.
|
||||
|
||||
This prevents double-expanding, in case the shell
|
||||
expands an argument whose filename is a glob
|
||||
expression.
|
||||
|
||||
For example, if 'app/*.ts' would match 'app/[id].ts',
|
||||
then on Windows powershell or cmd.exe, 'glob app/*.ts'
|
||||
will expand to 'app/[id].ts', as expected. However, in
|
||||
posix shells such as bash or zsh, the shell will first
|
||||
expand 'app/*.ts' to a list of filenames. Then glob
|
||||
will look for a file matching 'app/[id].ts' (ie,
|
||||
'app/i.ts' or 'app/d.ts'), which is unexpected.
|
||||
|
||||
Setting '--all' prevents this behavior, causing glob to
|
||||
treat ALL patterns as glob expressions to be expanded,
|
||||
even if they are an exact match to a file on disk.
|
||||
|
||||
When setting this option, be sure to enquote arguments
|
||||
so that the shell will not expand them prior to passing
|
||||
them to the glob command process.
|
||||
|
||||
-a --absolute Expand to absolute paths
|
||||
-d --dot-relative Prepend './' on relative matches
|
||||
-m --mark Append a / on any directories matched
|
||||
-x --posix Always resolve to posix style paths, using '/' as the
|
||||
directory separator, even on Windows. Drive letter
|
||||
absolute matches on Windows will be expanded to their
|
||||
full resolved UNC maths, eg instead of 'C:\foo\bar', it
|
||||
will expand to '//?/C:/foo/bar'.
|
||||
|
||||
-f --follow Follow symlinked directories when expanding '**'
|
||||
-R --realpath Call 'fs.realpath' on all of the results. In the case
|
||||
of an entry that cannot be resolved, the entry is
|
||||
omitted. This incurs a slight performance penalty, of
|
||||
course, because of the added system calls.
|
||||
|
||||
-s --stat Call 'fs.lstat' on all entries, whether required or not
|
||||
to determine if it's a valid match.
|
||||
|
||||
-b --match-base Perform a basename-only match if the pattern does not
|
||||
contain any slash characters. That is, '*.js' would be
|
||||
treated as equivalent to '**/*.js', matching js files
|
||||
in all directories.
|
||||
|
||||
--dot Allow patterns to match files/directories that start
|
||||
with '.', even if the pattern does not start with '.'
|
||||
|
||||
--nobrace Do not expand {...} patterns
|
||||
--nocase Perform a case-insensitive match. This defaults to
|
||||
'true' on macOS and Windows platforms, and false on all
|
||||
others.
|
||||
|
||||
Note: 'nocase' should only be explicitly set when it is
|
||||
known that the filesystem's case sensitivity differs
|
||||
from the platform default. If set 'true' on
|
||||
case-insensitive file systems, then the walk may return
|
||||
more or less results than expected.
|
||||
|
||||
--nodir Do not match directories, only files.
|
||||
|
||||
Note: to *only* match directories, append a '/' at the
|
||||
end of the pattern.
|
||||
|
||||
--noext Do not expand extglob patterns, such as '+(a|b)'
|
||||
--noglobstar Do not expand '**' against multiple path portions. Ie,
|
||||
treat it as a normal '*' instead.
|
||||
|
||||
--windows-path-no-escape
|
||||
Use '\' as a path separator *only*, and *never* as an
|
||||
escape character. If set, all '\' characters are
|
||||
replaced with '/' in the pattern.
|
||||
|
||||
-D<n> --max-depth=<n> Maximum depth to traverse from the current working
|
||||
directory
|
||||
|
||||
-C<cwd> --cwd=<cwd> Current working directory to execute/match in
|
||||
-r<root> --root=<root> A string path resolved against the 'cwd', which is used
|
||||
as the starting point for absolute patterns that start
|
||||
with '/' (but not drive letters or UNC paths on
|
||||
Windows).
|
||||
|
||||
Note that this *doesn't* necessarily limit the walk to
|
||||
the 'root' directory, and doesn't affect the cwd
|
||||
starting point for non-absolute patterns. A pattern
|
||||
containing '..' will still be able to traverse out of
|
||||
the root directory, if it is not an actual root
|
||||
directory on the filesystem, and any non-absolute
|
||||
patterns will still be matched in the 'cwd'.
|
||||
|
||||
To start absolute and non-absolute patterns in the same
|
||||
path, you can use '--root=' to set it to the empty
|
||||
string. However, be aware that on Windows systems, a
|
||||
pattern like 'x:/*' or '//host/share/*' will *always*
|
||||
start in the 'x:/' or '//host/share/' directory,
|
||||
regardless of the --root setting.
|
||||
|
||||
--platform=<platform> Defaults to the value of 'process.platform' if
|
||||
available, or 'linux' if not. Setting --platform=win32
|
||||
on non-Windows systems may cause strange behavior!
|
||||
|
||||
-i<ignore> --ignore=<ignore>
|
||||
Glob patterns to ignore Can be set multiple times
|
||||
-v --debug Output a huge amount of noisy debug information about
|
||||
patterns as they are parsed and used to match files.
|
||||
|
||||
-h --help Show this usage information
|
||||
```
|
||||
|
||||
## `glob(pattern: string | string[], options?: GlobOptions) => Promise<string[] | Path[]>`
|
||||
@@ -251,17 +362,16 @@ Options object is required.
|
||||
|
||||
See full options descriptions below.
|
||||
|
||||
> [!NOTE]
|
||||
> A previous `Glob` object can be passed as the
|
||||
> `GlobOptions` to another `Glob` instantiation to re-use settings
|
||||
> and caches with a new pattern.
|
||||
Note that a previous `Glob` object can be passed as the
|
||||
`GlobOptions` to another `Glob` instantiation to re-use settings
|
||||
and caches with a new pattern.
|
||||
|
||||
Traversal functions can be called multiple times to run the walk
|
||||
again.
|
||||
|
||||
### `g.stream()`
|
||||
|
||||
Stream results asynchronously.
|
||||
Stream results asynchronously,
|
||||
|
||||
### `g.streamSync()`
|
||||
|
||||
@@ -319,37 +429,35 @@ share the previously loaded cache.
|
||||
is used as the starting point for absolute patterns that start
|
||||
with `/`, (but not drive letters or UNC paths on Windows).
|
||||
|
||||
To start absolute and non-absolute patterns in the same path,
|
||||
you can use `{root:''}`. However, be aware that on Windows
|
||||
systems, a pattern like `x:/*` or `//host/share/*` will
|
||||
Note that this _doesn't_ necessarily limit the walk to the
|
||||
`root` directory, and doesn't affect the cwd starting point for
|
||||
non-absolute patterns. A pattern containing `..` will still be
|
||||
able to traverse out of the root directory, if it is not an
|
||||
actual root directory on the filesystem, and any non-absolute
|
||||
patterns will be matched in the `cwd`. For example, the
|
||||
pattern `/../*` with `{root:'/some/path'}` will return all
|
||||
files in `/some`, not all files in `/some/path`. The pattern
|
||||
`*` with `{root:'/some/path'}` will return all the entries in
|
||||
the cwd, not the entries in `/some/path`.
|
||||
|
||||
To start absolute and non-absolute patterns in the same
|
||||
path, you can use `{root:''}`. However, be aware that on
|
||||
Windows systems, a pattern like `x:/*` or `//host/share/*` will
|
||||
_always_ start in the `x:/` or `//host/share` directory,
|
||||
regardless of the `root` setting.
|
||||
|
||||
> [!NOTE] This _doesn't_ necessarily limit the walk to the
|
||||
> `root` directory, and doesn't affect the cwd starting point
|
||||
> for non-absolute patterns. A pattern containing `..` will
|
||||
> still be able to traverse out of the root directory, if it
|
||||
> is not an actual root directory on the filesystem, and any
|
||||
> non-absolute patterns will be matched in the `cwd`. For
|
||||
> example, the pattern `/../*` with `{root:'/some/path'}`
|
||||
> will return all files in `/some`, not all files in
|
||||
> `/some/path`. The pattern `*` with `{root:'/some/path'}`
|
||||
> will return all the entries in the cwd, not the entries in
|
||||
> `/some/path`.
|
||||
|
||||
- `windowsPathsNoEscape` Use `\\` as a path separator _only_, and
|
||||
_never_ as an escape character. If set, all `\\` characters are
|
||||
replaced with `/` in the pattern.
|
||||
|
||||
> [!NOTE]
|
||||
> This makes it **impossible** to match against paths
|
||||
> containing literal glob pattern characters, but allows matching
|
||||
> with patterns constructed using `path.join()` and
|
||||
> `path.resolve()` on Windows platforms, mimicking the (buggy!)
|
||||
> behavior of Glob v7 and before on Windows. Please use with
|
||||
> caution, and be mindful of [the caveat below about Windows
|
||||
> paths](#windows). (For legacy reasons, this is also set if
|
||||
> `allowWindowsEscape` is set to the exact value `false`.)
|
||||
Note that this makes it **impossible** to match against paths
|
||||
containing literal glob pattern characters, but allows matching
|
||||
with patterns constructed using `path.join()` and
|
||||
`path.resolve()` on Windows platforms, mimicking the (buggy!)
|
||||
behavior of Glob v7 and before on Windows. Please use with
|
||||
caution, and be mindful of [the caveat below about Windows
|
||||
paths](#windows). (For legacy reasons, this is also set if
|
||||
`allowWindowsEscape` is set to the exact value `false`.)
|
||||
|
||||
- `dot` Include `.dot` files in normal matches and `globstar`
|
||||
matches. Note that an explicit dot in a portion of the pattern
|
||||
@@ -384,33 +492,11 @@ share the previously loaded cache.
|
||||
- `nocase` Perform a case-insensitive match. This defaults to
|
||||
`true` on macOS and Windows systems, and `false` on all others.
|
||||
|
||||
> [!NOTE]
|
||||
> `nocase` should only be explicitly set when it is known that
|
||||
> the filesystem's case sensitivity differs from the platform
|
||||
> default. If set `true` on case-sensitive file systems, or
|
||||
> `false` on case-insensitive file systems, then the walk may
|
||||
> return more or less results than expected.
|
||||
>
|
||||
> As a shortcut to avoid excessive `RegExp` creations, `Glob`
|
||||
> will use string portions as-is to `readdir()` calls while doing
|
||||
> its traversal. If you are setting a `nocase: true` match on a
|
||||
> file system that is in fact case sensitive, then this will
|
||||
> result in matches not being found that you might expect,
|
||||
> because for example the pattern `Foo/*` will fail to read the
|
||||
> `FOO/` or `foo/` directories.
|
||||
>
|
||||
> On the other hand, if you set `nocase: false` on a
|
||||
> case-_insensitive_ system, then the opposite problem occurs:
|
||||
> `Foo/*` will match `foo/bar`, but because we only detect the
|
||||
> existence of the `foo/` folder by successfully performing a
|
||||
> `readdir`, there's no way to know what the "real" case is, and
|
||||
> the match will be reported as `Foo/bar`, using the case of the
|
||||
> string portion of the glob pattern.
|
||||
>
|
||||
> The default is usually correct, however it _is_ possible to
|
||||
> mount file systems with a different case-sensitivity from the
|
||||
> host system. If you know this is the case, set this flag
|
||||
> appropriately to the file system you are searching.
|
||||
**Note** `nocase` should only be explicitly set when it is
|
||||
known that the filesystem's case sensitivity differs from the
|
||||
platform default. If set `true` on case-sensitive file
|
||||
systems, or `false` on case-insensitive file systems, then the
|
||||
walk may return more or less results than expected.
|
||||
|
||||
- `maxDepth` Specify a number to limit the depth of the directory
|
||||
traversal to this many levels below the `cwd`.
|
||||
@@ -423,9 +509,8 @@ share the previously loaded cache.
|
||||
- `nodir` Do not match directories, only files. (Note: to match
|
||||
_only_ directories, put a `/` at the end of the pattern.)
|
||||
|
||||
> [!NOTE]
|
||||
> When `follow` and `nodir` are both set, then symbolic
|
||||
> links to directories are also omitted.
|
||||
Note: when `follow` and `nodir` are both set, then symbolic
|
||||
links to directories are also omitted.
|
||||
|
||||
- `stat` Call `lstat()` on all entries, whether required or not
|
||||
to determine whether it's a valid match. When used with
|
||||
@@ -433,33 +518,22 @@ share the previously loaded cache.
|
||||
as modified time, permissions, and so on. Note that this will
|
||||
incur a performance cost due to the added system calls.
|
||||
|
||||
- `ignore` string or string[], or an object with `ignored` and
|
||||
`childrenIgnored` methods.
|
||||
- `ignore` string or string[], or an object with `ignore` and
|
||||
`ignoreChildren` methods.
|
||||
|
||||
If a string or string[] is provided, then this is treated as
|
||||
a glob pattern or array of glob patterns to exclude from
|
||||
matches. To ignore all children within a directory, as well
|
||||
as the entry itself, append `'/**'` to the ignore pattern.
|
||||
If a string or string[] is provided, then this is treated as a
|
||||
glob pattern or array of glob patterns to exclude from matches.
|
||||
To ignore all children within a directory, as well as the entry
|
||||
itself, append `'/**'` to the ignore pattern.
|
||||
|
||||
**Note** `ignore` patterns are _always_ in `dot:true` mode,
|
||||
regardless of any other settings.
|
||||
|
||||
If an object is provided that has `ignored(path)` and/or
|
||||
`childrenIgnored(path)` methods, then these methods will be
|
||||
called to determine whether any Path is a match or if its
|
||||
called to determine whether any Path is a match or if its
|
||||
children should be traversed, respectively.
|
||||
|
||||
The `path` argument to the methods will be a
|
||||
[`path-scurry`](https://isaacs.github.io/path-scurry/index.html)
|
||||
[`Path`](https://isaacs.github.io/path-scurry/classes/PathBase)
|
||||
object, which extends
|
||||
[`fs.Dirent`](https://nodejs.org/docs/latest/api/fs.html#class-fsdirent)
|
||||
with additional useful methods like
|
||||
[`.fullpath()`](https://isaacs.github.io/path-scurry/classes/PathBase.html#fullpath),
|
||||
[`.relative()`](https://isaacs.github.io/path-scurry/classes/PathBase.html#relative),
|
||||
and more.
|
||||
|
||||
> [!NOTE]
|
||||
> `ignore` patterns are _always_ in `dot:true` mode,
|
||||
> regardless of any other settings.
|
||||
|
||||
- `follow` Follow symlinked directories when expanding `**`
|
||||
patterns. This can result in a lot of duplicate references in
|
||||
the presence of cyclic links, and make performance quite bad.
|
||||
@@ -468,9 +542,8 @@ share the previously loaded cache.
|
||||
it is not the first item in the pattern, or none if it is the
|
||||
first item in the pattern, following the same behavior as Bash.
|
||||
|
||||
> [!NOTE]
|
||||
> When `follow` and `nodir` are both set, then symbolic
|
||||
> links to directories are also omitted.
|
||||
Note: when `follow` and `nodir` are both set, then symbolic
|
||||
links to directories are also omitted.
|
||||
|
||||
- `realpath` Set to true to call `fs.realpath` on all of the
|
||||
results. In the case of an entry that cannot be resolved, the
|
||||
@@ -491,21 +564,20 @@ share the previously loaded cache.
|
||||
`absolute` may not be used along with `withFileTypes`.
|
||||
|
||||
- `posix` Set to true to use `/` as the path separator in
|
||||
returned results. On POSIX systems, this has no effect. On
|
||||
returned results. On posix systems, this has no effect. On
|
||||
Windows systems, this will return `/` delimited path results,
|
||||
and absolute paths will be returned in their fully resolved UNC
|
||||
path form, e.g. instead of `'C:\\foo\\bar'`, it will return
|
||||
and absolute paths will be returned in their full resolved UNC
|
||||
path form, eg insted of `'C:\\foo\\bar'`, it will return
|
||||
`//?/C:/foo/bar`.
|
||||
|
||||
- `platform` Defaults to the value of `process.platform` if
|
||||
- `platform` Defaults to value of `process.platform` if
|
||||
available, or `'linux'` if not. Setting `platform:'win32'` on
|
||||
non-Windows systems may cause strange behavior.
|
||||
|
||||
- `withFileTypes` Return
|
||||
[`path-scurry`](http://npm.im/path-scurry)
|
||||
[`Path`](https://isaacs.github.io/path-scurry/classes/PathBase.html)
|
||||
objects instead of strings. These are similar to a NodeJS
|
||||
`fs.Dirent` object, but with additional methods and properties.
|
||||
- `withFileTypes` Return [PathScurry](http://npm.im/path-scurry)
|
||||
`Path` objects instead of strings. These are similar to a
|
||||
NodeJS `Dirent` object, but with additional methods and
|
||||
properties.
|
||||
|
||||
`withFileTypes` may not be used along with `absolute`.
|
||||
|
||||
@@ -513,15 +585,13 @@ share the previously loaded cache.
|
||||
triggered.
|
||||
|
||||
- `fs` An override object to pass in custom filesystem methods.
|
||||
See [`path-scurry`
|
||||
docs](https://isaacs.github.io/path-scurry/interfaces/FSOption.html)
|
||||
for what can be overridden.
|
||||
See [PathScurry docs](http://npm.im/path-scurry) for what can
|
||||
be overridden.
|
||||
|
||||
- `scurry` A
|
||||
[`PathScurry`](https://isaacs.github.io/path-scurry/classes/PathScurryBase.html)
|
||||
object used to traverse the file system. If the `nocase` option
|
||||
is set explicitly, then any provided `scurry` object must match
|
||||
this setting.
|
||||
- `scurry` A [PathScurry](http://npm.im/path-scurry) object used
|
||||
to traverse the file system. If the `nocase` option is set
|
||||
explicitly, then any provided `scurry` object must match this
|
||||
setting.
|
||||
|
||||
- `includeChildMatches` boolean, default `true`. Do not match any
|
||||
children of any matches. For example, the pattern `**\/foo`
|
||||
@@ -536,6 +606,13 @@ share the previously loaded cache.
|
||||
`false`, and a custom `Ignore` is provided that does not have
|
||||
an `add()` method, then it will throw an error.
|
||||
|
||||
**Caveat** It _only_ ignores matches that would be a descendant
|
||||
of a previous match, and only if that descendant is matched
|
||||
_after_ the ancestor is encountered. Since the file system walk
|
||||
happens in indeterminate order, it's possible that a match will
|
||||
already be added before its ancestor, if multiple or braced
|
||||
patterns are used.
|
||||
|
||||
For example:
|
||||
|
||||
```js
|
||||
@@ -561,19 +638,6 @@ share the previously loaded cache.
|
||||
one another's file system descendants, or if the occasional
|
||||
included child entry will not cause problems.
|
||||
|
||||
> [!NOTE]
|
||||
> It _only_ ignores matches that would be a descendant
|
||||
> of a previous match, and only if that descendant is matched
|
||||
> _after_ the ancestor is encountered. Since the file system walk
|
||||
> happens in indeterminate order, it's possible that a match will
|
||||
> already be added before its ancestor, if multiple or braced
|
||||
> patterns are used.
|
||||
|
||||
- `braceExpandMax` number, defaults to `10_000`. This is the
|
||||
maximum number of `{x,y,...}` patterns to expand. It is very
|
||||
unlikely that you'll need more than this, and setting it higher
|
||||
exposes the system to out-of-memory errors.
|
||||
|
||||
## Glob Primer
|
||||
|
||||
Much more information about glob pattern expansion can be found
|
||||
@@ -673,12 +737,11 @@ bsdglob and bash 5, where `**` only has special significance if
|
||||
it is the only thing in a path part. That is, `a/**/b` will match
|
||||
`a/x/y/b`, but `a/**b` will not.
|
||||
|
||||
> [!NOTE]
|
||||
> Symlinked directories are not traversed as part of a
|
||||
> `**`, though their contents may match against subsequent portions
|
||||
> of the pattern. This prevents infinite loops and duplicates and
|
||||
> the like. You can force glob to traverse symlinks with `**` by
|
||||
> setting `{follow:true}` in the options.
|
||||
Note that symlinked directories are not traversed as part of a
|
||||
`**`, though their contents may match against subsequent portions
|
||||
of the pattern. This prevents infinite loops and duplicates and
|
||||
the like. You can force glob to traverse symlinks with `**` by
|
||||
setting `{follow:true}` in the options.
|
||||
|
||||
There is no equivalent of the `nonull` option. A pattern that
|
||||
does not find any matches simply resolves to nothing. (An empty
|
||||
@@ -691,8 +754,8 @@ expanded **first** into the set of `+(a|b)` and `+(a|c)`, and
|
||||
those patterns are checked for validity. Since those two are
|
||||
valid, matching proceeds.
|
||||
|
||||
The character class patterns `[:class:]` (POSIX standard named
|
||||
classes) style class patterns are supported and Unicode-aware,
|
||||
The character class patterns `[:class:]` (posix standard named
|
||||
classes) style class patterns are supported and unicode-aware,
|
||||
but `[=c=]` (locale-specific character collation weight), and
|
||||
`[.symbol.]` (collating symbol), are not.
|
||||
|
||||
@@ -716,13 +779,13 @@ To specify things that should not match, use the `ignore` option.
|
||||
|
||||
**Please only use forward-slashes in glob expressions.**
|
||||
|
||||
Though Windows uses either `/` or `\` as its path separator, only
|
||||
Though windows uses either `/` or `\` as its path separator, only
|
||||
`/` characters are used by this glob implementation. You must use
|
||||
forward-slashes **only** in glob expressions. Back-slashes will
|
||||
always be interpreted as escape characters, not path separators.
|
||||
|
||||
Results from absolute patterns such as `/foo/*` are mounted onto
|
||||
the root setting using `path.join`. On Windows, this will by
|
||||
the root setting using `path.join`. On windows, this will by
|
||||
default result in `/foo/*` matching `C:\foo\bar.txt`.
|
||||
|
||||
To automatically coerce all `\` characters to `/` in pattern
|
||||
@@ -732,7 +795,7 @@ characters**, you may set the `windowsPathsNoEscape` option to
|
||||
|
||||
### Windows, CWDs, Drive Letters, and UNC Paths
|
||||
|
||||
On POSIX systems, when a pattern starts with `/`, any `cwd`
|
||||
On posix systems, when a pattern starts with `/`, any `cwd`
|
||||
option is ignored, and the traversal starts at `/`, plus any
|
||||
non-magic path portions specified in the pattern.
|
||||
|
||||
@@ -892,11 +955,10 @@ performing a glob pattern expansion as faithfully as possible to
|
||||
the behavior of Bash and other sh-like shells, with as much speed
|
||||
as possible.
|
||||
|
||||
> [!NOTE]
|
||||
> Prior versions of `node-glob` are _not_ on this list.
|
||||
> Former versions of this module are far too slow for any cases
|
||||
> where performance matters at all, and were designed with APIs
|
||||
> that are extremely dated by current JavaScript standards.
|
||||
Note that prior versions of `node-glob` are _not_ on this list.
|
||||
Former versions of this module are far too slow for any cases
|
||||
where performance matters at all, and were designed with APIs
|
||||
that are extremely dated by current JavaScript standards.
|
||||
|
||||
---
|
||||
|
||||
@@ -908,9 +970,9 @@ course.</small>
|
||||
|
||||
### Benchmark Results
|
||||
|
||||
The first number is time, smaller is better.
|
||||
First number is time, smaller is better.
|
||||
|
||||
The second number is the count of results returned.
|
||||
Second number is the count of results returned.
|
||||
|
||||
```
|
||||
--- pattern: '**' ---
|
||||
|
||||
+1
-9
@@ -73,7 +73,7 @@ export interface GlobOptions {
|
||||
*/
|
||||
follow?: boolean;
|
||||
/**
|
||||
* string or string[], or an object with `ignored` and `childrenIgnored`
|
||||
* string or string[], or an object with `ignore` and `ignoreChildren`
|
||||
* methods.
|
||||
*
|
||||
* If a string or string[] is provided, then this is treated as a glob
|
||||
@@ -290,14 +290,6 @@ export interface GlobOptions {
|
||||
* @default true
|
||||
*/
|
||||
includeChildMatches?: boolean;
|
||||
/**
|
||||
* max number of `{...}` patterns to expand. Default `1_000`.
|
||||
*
|
||||
* Note: this is much less than minimatch's default of `100_000`,
|
||||
* because Glob has higher memory requirements due to walking
|
||||
* the file system tree.
|
||||
*/
|
||||
braceExpandMax?: number;
|
||||
}
|
||||
export type GlobOptionsWithFileTypesTrue = GlobOptions & {
|
||||
withFileTypes: true;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,UAAU,EAIX,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;AACvC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAA;AAalE;;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H,UAAU,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAclD;;;OAGG;IACH,WAAW,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGlD,CAAC,MAAM,CAAC,QAAQ,CAAC;IAIjB;;;OAGG;IACH,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGnD,CAAC,MAAM,CAAC,aAAa,CAAC;CAGvB"}
|
||||
+1
-2
@@ -140,12 +140,11 @@ class Glob {
|
||||
// for the file `AbC` for example.
|
||||
const nocaseMagicOnly = this.platform === 'darwin' || this.platform === 'win32';
|
||||
const mmo = {
|
||||
braceExpandMax: 10_000,
|
||||
// default nocase based on platform
|
||||
...opts,
|
||||
dot: this.dot,
|
||||
matchBase: this.matchBase,
|
||||
nobrace: this.nobrace,
|
||||
// default nocase based on platform
|
||||
nocase: this.nocase,
|
||||
nocaseMagicOnly,
|
||||
nocomment: true,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,UAAS,WAAgB,KACxB,OAQF,CAAA"}
|
||||
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,YACV,MAAM,GAAG,MAAM,EAAE,YACjB,WAAW,KACnB,OAQF,CAAA"}
|
||||
+2
-2
@@ -91,7 +91,7 @@ export declare const glob: typeof glob_ & {
|
||||
iterateSync: typeof globIterateSync;
|
||||
Glob: typeof Glob;
|
||||
hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
|
||||
escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
||||
unescape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
||||
escape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
||||
unescape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
||||
};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
-3
@@ -11,7 +11,6 @@ export type UNCPatternList = [
|
||||
export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
|
||||
export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
|
||||
export type GlobList = [p: string, ...rest: string[]];
|
||||
declare const customInspect: unique symbol;
|
||||
/**
|
||||
* An immutable-ish view on an array of glob parts and their parsed
|
||||
* results
|
||||
@@ -20,7 +19,6 @@ export declare class Pattern {
|
||||
#private;
|
||||
readonly length: number;
|
||||
constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
|
||||
[customInspect](): string;
|
||||
/**
|
||||
* The first entry in the parsed list of patterns
|
||||
*/
|
||||
@@ -75,5 +73,4 @@ export declare class Pattern {
|
||||
*/
|
||||
markFollowGlobstar(): boolean;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=pattern.d.ts.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,M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;;OAEG;IACH,QAAQ,IAAI,OAAO;IAGnB;;OAEG;IACH,UAAU,IAAI,OAAO;IAGrB;;OAEG;IACH,QAAQ,IAAI,OAAO;IAInB;;OAEG;IACH,UAAU,IAAI,MAAM;IAUpB;;OAEG;IACH,OAAO,IAAI,OAAO;IAIlB;;OAEG;IACH,IAAI,IAAI,OAAO,GAAG,IAAI;IAetB;;OAEG;IACH,KAAK,IAAI,OAAO;IAoBhB;;OAEG;IACH,OAAO,IAAI,OAAO;IAelB;;OAEG;IACH,UAAU,IAAI,OAAO;IAUrB;;OAEG;IACH,IAAI,IAAI,MAAM;IASd;;;OAGG;IACH,mBAAmB,IAAI,OAAO;IAQ9B;;OAEG;IACH,kBAAkB,IAAI,OAAO;CAM9B"}
|
||||
-4
@@ -5,7 +5,6 @@ exports.Pattern = void 0;
|
||||
const minimatch_1 = require("minimatch");
|
||||
const isPatternList = (pl) => pl.length >= 1;
|
||||
const isGlobList = (gl) => gl.length >= 1;
|
||||
const customInspect = Symbol.for('nodejs.util.inspect.custom');
|
||||
/**
|
||||
* An immutable-ish view on an array of glob parts and their parsed
|
||||
* results
|
||||
@@ -81,9 +80,6 @@ class Pattern {
|
||||
}
|
||||
}
|
||||
}
|
||||
[customInspect]() {
|
||||
return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>';
|
||||
}
|
||||
/**
|
||||
* The first entry in the parsed list of patterns
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-9
@@ -73,7 +73,7 @@ export interface GlobOptions {
|
||||
*/
|
||||
follow?: boolean;
|
||||
/**
|
||||
* string or string[], or an object with `ignored` and `childrenIgnored`
|
||||
* string or string[], or an object with `ignore` and `ignoreChildren`
|
||||
* methods.
|
||||
*
|
||||
* If a string or string[] is provided, then this is treated as a glob
|
||||
@@ -290,14 +290,6 @@ export interface GlobOptions {
|
||||
* @default true
|
||||
*/
|
||||
includeChildMatches?: boolean;
|
||||
/**
|
||||
* max number of `{...}` patterns to expand. Default `1_000`.
|
||||
*
|
||||
* Note: this is much less than minimatch's default of `100_000`,
|
||||
* because Glob has higher memory requirements due to walking
|
||||
* the file system tree.
|
||||
*/
|
||||
braceExpandMax?: number;
|
||||
}
|
||||
export type GlobOptionsWithFileTypesTrue = GlobOptions & {
|
||||
withFileTypes: true;
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"glob.d.ts","sourceRoot":"","sources":["../../src/glob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAoB,MAAM,WAAW,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAEnC,OAAO,EACL,QAAQ,EACR,IAAI,EACJ,UAAU,EAIX,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,MAAM,MAAM,QAAQ,GAAG,SAAS,CAAC,KAAK,CAAC,CAAA;AACvC,MAAM,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAA;AAalE;;;;;;;;;;;;GAYG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAE5B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;IAElB;;;;OAIG;IACH,GAAG,CAAC,EAAE,OAAO,CAAA;IAEb;;;;;;;;OAQG;IACH,WAAW,CAAC,EAAE,OAAO,CAAA;IAErB;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,UAAU,CAAA;IAEvC;;;;;OAKG;IACH,aAAa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ACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ,CAAA;IACzB,QAAQ,EAAE,OAAO,CAAA;IACjB,MAAM,EAAE,UAAU,CAAA;IAClB,IAAI,EAAE,OAAO,CAAA;IACb,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,oBAAoB,EAAE,OAAO,CAAA;IAC7B,aAAa,EAAE,SAAS,CAAC,IAAI,CAAC,CAAA;IAC9B,mBAAmB,EAAE,OAAO,CAAA;IAE5B;;OAEG;IACH,IAAI,EAAE,IAAI,CAAA;IAEV;;OAEG;IACH,QAAQ,EAAE,OAAO,EAAE,CAAA;IAEnB;;;;;;;;;;;OAWG;gBACS,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI;IA2HlD;;OAEG;IACG,IAAI,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAoBpC;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IAgBzB;;OAEG;IACH,MAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAc9C;;OAEG;IACH,UAAU,IAAI,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC;IAclD;;;OAGG;IACH,WAAW,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGlD,CAAC,MAAM,CAAC,QAAQ,CAAC;IAIjB;;;OAGG;IACH,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC;IAGnD,CAAC,MAAM,CAAC,aAAa,CAAC;CAGvB"}
|
||||
+1
-2
@@ -137,12 +137,11 @@ export class Glob {
|
||||
// for the file `AbC` for example.
|
||||
const nocaseMagicOnly = this.platform === 'darwin' || this.platform === 'win32';
|
||||
const mmo = {
|
||||
braceExpandMax: 10_000,
|
||||
// default nocase based on platform
|
||||
...opts,
|
||||
dot: this.dot,
|
||||
matchBase: this.matchBase,
|
||||
nobrace: this.nobrace,
|
||||
// default nocase based on platform
|
||||
nocase: this.nocase,
|
||||
nocaseMagicOnly,
|
||||
nocomment: true,
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,GACnB,SAAS,MAAM,GAAG,MAAM,EAAE,EAC1B,UAAS,WAAgB,KACxB,OAQF,CAAA"}
|
||||
{"version":3,"file":"has-magic.d.ts","sourceRoot":"","sources":["../../src/has-magic.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAEvC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,YACV,MAAM,GAAG,MAAM,EAAE,YACjB,WAAW,KACnB,OAQF,CAAA"}
|
||||
+2
-2
@@ -91,7 +91,7 @@ export declare const glob: typeof glob_ & {
|
||||
iterateSync: typeof globIterateSync;
|
||||
Glob: typeof Glob;
|
||||
hasMagic: (pattern: string | string[], options?: GlobOptions) => boolean;
|
||||
escape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
||||
unescape: (s: string, { windowsPathsNoEscape, magicalBraces, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape" | "magicalBraces">) => string;
|
||||
escape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
||||
unescape: (s: string, { windowsPathsNoEscape, }?: Pick<import("minimatch").MinimatchOptions, "windowsPathsNoEscape">) => string;
|
||||
};
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
-3
@@ -11,7 +11,6 @@ export type UNCPatternList = [
|
||||
export type DrivePatternList = [p0: string, ...rest: MMPattern[]];
|
||||
export type AbsolutePatternList = [p0: '', ...rest: MMPattern[]];
|
||||
export type GlobList = [p: string, ...rest: string[]];
|
||||
declare const customInspect: unique symbol;
|
||||
/**
|
||||
* An immutable-ish view on an array of glob parts and their parsed
|
||||
* results
|
||||
@@ -20,7 +19,6 @@ export declare class Pattern {
|
||||
#private;
|
||||
readonly length: number;
|
||||
constructor(patternList: MMPattern[], globList: string[], index: number, platform: NodeJS.Platform);
|
||||
[customInspect](): string;
|
||||
/**
|
||||
* The first entry in the parsed list of patterns
|
||||
*/
|
||||
@@ -75,5 +73,4 @@ export declare class Pattern {
|
||||
*/
|
||||
markFollowGlobstar(): boolean;
|
||||
}
|
||||
export {};
|
||||
//# sourceMappingURL=pattern.d.ts.map
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../../src/pattern.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAA;AACpC,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,QAAQ,CAAA;AAGzD,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;AAC9D,MAAM,MAAM,cAAc,GAAG;IAC3B,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,EAAE;IACN,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,MAAM;IACV,GAAG,IAAI,EAAE,SAAS,EAAE;CACrB,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,CAAC,CAAA;AACjE,MAAM,MAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAE,EAAE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LOBSTAR } from 'minimatch';
|
||||
const isPatternList = (pl) => pl.length >= 1;
|
||||
const isGlobList = (gl) => gl.length >= 1;
|
||||
const customInspect = Symbol.for('nodejs.util.inspect.custom');
|
||||
/**
|
||||
* An immutable-ish view on an array of glob parts and their parsed
|
||||
* results
|
||||
@@ -78,9 +77,6 @@ export class Pattern {
|
||||
}
|
||||
}
|
||||
}
|
||||
[customInspect]() {
|
||||
return 'Pattern <' + this.#globList.slice(this.#index).join('/') + '>';
|
||||
}
|
||||
/**
|
||||
* The first entry in the parsed list of patterns
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+45
-44
@@ -1,31 +1,25 @@
|
||||
{
|
||||
"author": "Isaac Z. Schlueter <i@izs.me> (https://blog.izs.me/)",
|
||||
"publishConfig": {
|
||||
"tag": "legacy-v10"
|
||||
},
|
||||
"name": "glob",
|
||||
"description": "the most correct and second fastest glob implementation in JavaScript",
|
||||
"version": "13.0.6",
|
||||
"version": "10.4.5",
|
||||
"type": "module",
|
||||
"tshy": {
|
||||
"main": true,
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
"./raw": "./src/index.ts",
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
"default": "./dist/commonjs/index.min.js"
|
||||
}
|
||||
}
|
||||
".": "./src/index.ts"
|
||||
}
|
||||
},
|
||||
"main": "./dist/commonjs/index.min.js",
|
||||
"module": "./dist/esm/index.min.js",
|
||||
"bin": "./dist/esm/bin.mjs",
|
||||
"main": "./dist/commonjs/index.js",
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
"exports": {
|
||||
"./package.json": "./package.json",
|
||||
"./raw": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.js"
|
||||
@@ -34,21 +28,11 @@
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
"default": "./dist/commonjs/index.js"
|
||||
}
|
||||
},
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/esm/index.d.ts",
|
||||
"default": "./dist/esm/index.min.js"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/commonjs/index.d.ts",
|
||||
"default": "./dist/commonjs/index.min.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git@github.com:isaacs/node-glob.git"
|
||||
"url": "git://github.com/isaacs/node-glob.git"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
@@ -56,14 +40,15 @@
|
||||
"scripts": {
|
||||
"preversion": "npm test",
|
||||
"postversion": "npm publish",
|
||||
"prepublishOnly": "npm run benchclean; git push origin --follow-tags",
|
||||
"prepare": "tshy && bash scripts/build.sh",
|
||||
"prepublishOnly": "git push origin --follow-tags",
|
||||
"prepare": "tshy",
|
||||
"pretest": "npm run prepare",
|
||||
"presnap": "npm run prepare",
|
||||
"test": "tap",
|
||||
"snap": "tap",
|
||||
"format": "prettier --write . --log-level warn",
|
||||
"typedoc": "typedoc",
|
||||
"typedoc": "typedoc --tsconfig .tshy/esm.json ./src/*.ts",
|
||||
"prepublish": "npm run benchclean",
|
||||
"profclean": "rm -f v8.log profile.txt",
|
||||
"test-regen": "npm run profclean && TEST_REGEN=1 node --no-warnings --loader ts-node/esm test/00-setup.ts",
|
||||
"prebench": "npm run prepare",
|
||||
@@ -72,27 +57,43 @@
|
||||
"prof": "bash prof.sh",
|
||||
"benchclean": "node benchclean.cjs"
|
||||
},
|
||||
"prettier": {
|
||||
"experimentalTernaries": true,
|
||||
"semi": false,
|
||||
"printWidth": 75,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"singleQuote": true,
|
||||
"jsxSingleQuote": false,
|
||||
"bracketSameLine": true,
|
||||
"arrowParens": "avoid",
|
||||
"endOfLine": "lf"
|
||||
},
|
||||
"dependencies": {
|
||||
"minimatch": "^10.2.2",
|
||||
"minipass": "^7.1.3",
|
||||
"path-scurry": "^2.0.2"
|
||||
"foreground-child": "^3.1.0",
|
||||
"jackspeak": "^3.1.2",
|
||||
"minimatch": "^9.0.4",
|
||||
"minipass": "^7.1.2",
|
||||
"package-json-from-dist": "^1.0.0",
|
||||
"path-scurry": "^1.11.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^25.3.0",
|
||||
"esbuild": "^0.27.3",
|
||||
"memfs": "^4.50.0",
|
||||
"@types/node": "^20.11.30",
|
||||
"memfs": "^3.4.13",
|
||||
"mkdirp": "^3.0.1",
|
||||
"prettier": "^3.6.2",
|
||||
"rimraf": "^6.1.3",
|
||||
"tap": "^21.6.1",
|
||||
"tshy": "^3.3.2",
|
||||
"typedoc": "^0.28.17"
|
||||
"prettier": "^3.2.5",
|
||||
"rimraf": "^5.0.7",
|
||||
"sync-content": "^1.0.2",
|
||||
"tap": "^19.0.0",
|
||||
"tshy": "^1.14.0",
|
||||
"typedoc": "^0.25.12"
|
||||
},
|
||||
"license": "BlueOak-1.0.0",
|
||||
"tap": {
|
||||
"before": "test/00-setup.ts"
|
||||
},
|
||||
"license": "ISC",
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/isaacs"
|
||||
},
|
||||
"engines": {
|
||||
"node": "18 || 20 || >=22"
|
||||
}
|
||||
"module": "./dist/esm/index.js"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user