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 3591be4 commit 685d8fb
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 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
70 changes: 68 additions & 2 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"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",
Expand All @@ -52,7 +51,8 @@
"publint": "0.2.10",
"semantic-release": "24.1.1",
"sinon": "18.0.1",
"tempy": "3.1.0"
"tempy": "3.1.0",
"tinyglobby": "^0.2.6"
},
"engines": {
"node": ">=20.8.1"
Expand Down

0 comments on commit 685d8fb

Please sign in to comment.