Skip to content

Commit

Permalink
refactor(glob-assets): use 'tinyglobby' instead of 'globby' as depend…
Browse files Browse the repository at this point in the history
  • Loading branch information
oscard0m committed Sep 13, 2024
1 parent 3a0ba1d commit 2064e1d
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/glob-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { basename, resolve } from "node:path";

import { isPlainObject, castArray, uniqWith, uniq } from "lodash-es";
import dirGlob from "dir-glob";
import { globby } from "globby";
import { glob as tinyglobby } from "tinyglobby";
import debugFactory from "debug";

const debug = debugFactory("semantic-release:github");
Expand All @@ -27,7 +27,7 @@ export default async function globAssets({ cwd }, assets) {
return [];
}

const globbed = await globby(glob, {
const globbed = await tinyglobby(glob, {
cwd,
expandDirectories: false, // TODO Temporary workaround for https://github.com/mrmlnc/fast-glob/issues/47
dot: true,
Expand Down
67 changes: 65 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@
"aggregate-error": "^5.0.0",
"debug": "^4.3.4",
"dir-glob": "^3.0.1",
"globby": "^14.0.0",
"http-proxy-agent": "^7.0.0",
"https-proxy-agent": "^7.0.0",
"issue-parser": "^7.0.0",
"lodash-es": "^4.17.21",
"mime": "^4.0.0",
"p-filter": "^4.0.0",
"tinyglobby": "^0.2.6",
"url-join": "^5.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 2064e1d

Please sign in to comment.