Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2064e1d

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 3a0ba1d commit 2064e1d

File tree

3 files changed

+68
-5
lines changed

3 files changed

+68
-5
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 { globastinyglobby} 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: 65 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.6",
4040
"url-join": "^5.0.0"
4141
},
4242
"devDependencies": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /