Skip to content

Commit 685d8fb

Browse files
committed
refactor(glob-assets): use 'tinyglobby' instead of 'globby' as dependency
[email protected] is 26.3kb (minified + gzipped) -> https://bundlephobia.com/package/[email protected] [email protected] is 10.8kb (minified + gzipped) https://bundlephobia.com/package/[email protected] and other libraries are opting for it: https://e18e.dev/blog/august-contributions-showcase#tinyglobby-fdir
1 parent 3591be4 commit 685d8fb

File tree

3 files changed

+72
-6
lines changed

3 files changed

+72
-6
lines changed

lib/glob-assets.js

+2-2
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

+68-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
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",
@@ -52,7 +51,8 @@
5251
"publint": "0.2.10",
5352
"semantic-release": "24.1.1",
5453
"sinon": "18.0.1",
55-
"tempy": "3.1.0"
54+
"tempy": "3.1.0",
55+
"tinyglobby": "^0.2.6"
5656
},
5757
"engines": {
5858
"node": ">=20.8.1"

0 commit comments

Comments
 (0)