Skip to content

Commit 685d8fb

Browse files
committed
refactor(glob-assets): use 'tinyglobby' instead of 'globby' as dependency
globby@14.0.2 is 26.3kb (minified + gzipped) -> https://bundlephobia.com/package/globby@14.0.2 tinyglobby@0.2.6 is 10.8kb (minified + gzipped) https://bundlephobia.com/package/tinyglobby@0.2.6 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

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: 68 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: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy