diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-05-23 03:39:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-23 03:39:59 +0200 |
| commit | 5874fc3d0aaf1b0453fb916656187503d8619ccd (patch) | |
| tree | 16bdea5734546c04a95a119e139542f83bed2d8a /cli/Cargo.toml | |
| parent | bb37dfb5b79c0e5ae18d34f01313cb1f39d7a2dd (diff) | |
feat: add support for globs in the config file and CLI arguments for files (#19102)
Follow up to https://github.com/denoland/deno/pull/19084.
This commit adds support for globs in the configuration file as well
as CLI arguments for files.
With this change users can now use glob syntax for "include" and
"exclude" fields, like so:
```json
{
"lint": {
"include": [
"directory/test*.ts",
"other_dir/"
],
"exclude": [
"other_dir/foo*.ts",
"nested/nested2/*"
]
},
"test": {
"include": [
"data/test*.ts",
"nested/",
"tests/test[1-9].ts"
],
"exclude": [
"nested/foo?.ts",
"nested/nested2/*"
]
}
}
```
Or in CLI args like so:
```
// notice quotes here; these values will be passed to Deno verbatim
// and deno will perform glob expansion
$ deno fmt --ignore="data/*.ts"
$ deno lint "data/**/*.ts"
```
Closes https://github.com/denoland/deno/issues/17971
Closes https://github.com/denoland/deno/issues/6365
Diffstat (limited to 'cli/Cargo.toml')
| -rw-r--r-- | cli/Cargo.toml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 59cabd915..4c6db695f 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -75,6 +75,7 @@ fancy-regex = "=0.10.0" fastwebsockets.workspace = true flate2.workspace = true fs3.workspace = true +glob = "0.3.1" http.workspace = true hyper.workspace = true import_map = "=0.15.0" |
