Skip to content

Commit

Permalink
Update globby to version 10 (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking authored and sindresorhus committed Jul 2, 2019
1 parent 6e23f6a commit 6f96d2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function safeCheck(file) {
}

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

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

module.exports.sync = (patterns, {force, dryRun, ...options} = {}) => {
options = {expandDirectories: false, onlyFiles: false, followSymbolicLinks: false, ...options};
return globby.sync(patterns, options).map(file => {
if (!force) {
safeCheck(file);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
],
"dependencies": {
"@types/glob": "^7.1.1",
"globby": "^6.1.0",
"globby": "^10.0.0",
"is-path-cwd": "^2.0.0",
"is-path-in-cwd": "^2.0.0",
"p-map": "^2.0.0",
Expand Down

0 comments on commit 6f96d2d

Please sign in to comment.