Skip to content

Commit 6f96d2d

Browse files
realitykingsindresorhus
authored andcommitted
Update globby to version 10 (#64)
1 parent 6e23f6a commit 6f96d2d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function safeCheck(file) {
2020
}
2121

2222
module.exports = async (patterns, {force, dryRun, ...options} = {}) => {
23+
options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options};
2324
const files = await globby(patterns, options);
2425

2526
const mapper = async file => {
@@ -40,6 +41,7 @@ module.exports = async (patterns, {force, dryRun, ...options} = {}) => {
4041
};
4142

4243
module.exports.sync = (patterns, {force, dryRun, ...options} = {}) => {
44+
options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options};
4345
return globby.sync(patterns, options).map(file => {
4446
if (!force) {
4547
safeCheck(file);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
],
4646
"dependencies": {
4747
"@types/glob": "^7.1.1",
48-
"globby": "^6.1.0",
48+
"globby": "^10.0.0",
4949
"is-path-cwd": "^2.0.0",
5050
"is-path-in-cwd": "^2.0.0",
5151
"p-map": "^2.0.0",

0 commit comments

Comments
 (0)