Skip to content

Commit 6dfb43c

Browse files
authored
feat!: drop tinyglobby and use native fs.glob (#58)
* feat!: drop `tinyglobby` and use native `fs.glob`
1 parent 00cd84c commit 6dfb43c

5 files changed

Lines changed: 1258 additions & 464 deletions

File tree

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ The library is very similar to the [copyfiles](https://www.npmjs.com/package/cop
1717
> **Note**: there is 1 noticeable difference with `copyfiles` package, all the CLI options must be provided as suffix and after the source/target directories command (the original `copyfiles` project has them as prefix).<br>
1818
> This mean calling: `copyfiles source target [options]` instead of `copyfiles [options] source target`
1919
20+
> [!NOTE]
21+
> This project now requires Node.JS >= 22.17.0 so that we can use the native `fs.glob`, however if you can't update your Node.JS just yet, then just stick with `native-copyfiles: ^1.3.7` since that is the only change in v2.0.0
22+
2023
### Install
2124

2225
```bash
@@ -105,7 +108,7 @@ copyfiles "**/*.test.js" -f "./foo/**/*.js" out -e
105108
```
106109

107110
> [!NOTE]
108-
> By default the `.git/` and `node_modules/` directories will be excluded but only when using globs.
111+
> By default the `.git/` and `node_modules/` directories will be excluded (when using globs). If you provide your own `--exclude` option, it will override the defaults and only use your patterns.
109112
110113
Other options include
111114

0 commit comments

Comments
 (0)