Skip to content

Commit 08bab71

Browse files
committed
chore(deps): switch to tinyglobby
1 parent aae83c0 commit 08bab71

File tree

4 files changed

+60
-7
lines changed

4 files changed

+60
-7
lines changed

lib/glob-assets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { basename, resolve } from "node:path";
22

33
import { isPlainObject, castArray, uniqWith, uniq } from "lodash-es";
44
import dirGlob from "dir-glob";
5-
import { globby } from "globby";
5+
import { glob as tinyglobby } from "tinyglobby";
66
import debugFactory from "debug";
77

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

30-
const globbed = await globby(glob, {
30+
const globbed = await tinyglobby(glob, {
3131
cwd,
3232
expandDirectories: false, // TODO Temporary workaround for https://github.com/mrmlnc/fast-glob/issues/47
3333
dot: true,

package-lock.json

Lines changed: 55 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@
3030
"aggregate-error": "^5.0.0",
3131
"debug": "^4.3.4",
3232
"dir-glob": "^3.0.1",
33-
"globby": "^14.0.0",
3433
"http-proxy-agent": "^7.0.0",
3534
"https-proxy-agent": "^7.0.0",
3635
"issue-parser": "^7.0.0",
3736
"lodash-es": "^4.17.21",
3837
"mime": "^4.0.0",
3938
"p-filter": "^4.0.0",
39+
"tinyglobby": "^0.2.14",
4040
"url-join": "^5.0.0"
4141
},
4242
"devDependencies": {

test/glob-assets.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ test("Expand directories", async (t) => {
228228
t.deepEqual(
229229
sortAssets(globbedAssets),
230230
sortAssets([
231-
"dir",
231+
"dir/",
232232
"dir/upload_other.txt",
233233
"dir/upload.txt",
234234
"dir/.dotfile",
@@ -242,7 +242,7 @@ test("Include empty temporaryDirectory as defined", async (t) => {
242242
await mkdir(resolve(cwd, "empty"), { recursive: true });
243243
const globbedAssets = await globAssets({ cwd }, [["empty"]]);
244244

245-
t.deepEqual(globbedAssets, ["empty"]);
245+
t.deepEqual(globbedAssets, ["empty/"]);
246246
});
247247

248248
test("Deduplicate resulting files path", async (t) => {

0 commit comments

Comments
 (0)