Skip to content

Commit 93fc812

Browse files
authored
chore(core): replace globby with tinyglobby (#3383)
1 parent b978e04 commit 93fc812

3 files changed

Lines changed: 16 additions & 18 deletions

File tree

bun.lock

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

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"esbuild": "^0.27.4",
4343
"esutils": "2.0.3",
4444
"fs-extra": "^11.3.2",
45-
"globby": "16.1.0",
45+
"tinyglobby": "^0.2.16",
4646
"jiti": "^2.6.1",
4747
"remeda": "^2.33.6",
4848
"typedoc": "^0.28.19"

packages/core/src/utils/file.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs';
22
import path from 'node:path';
33

4-
import { globby } from 'globby';
4+
import { glob } from 'tinyglobby';
55

66
import { isDirectory } from './assertion';
77

@@ -37,7 +37,7 @@ export async function removeFilesAndEmptyFolders(
3737
patterns: string[],
3838
dir: string,
3939
) {
40-
const files = await globby(patterns, {
40+
const files = await glob(patterns, {
4141
cwd: dir,
4242
absolute: true,
4343
});
@@ -46,7 +46,7 @@ export async function removeFilesAndEmptyFolders(
4646
await Promise.all(files.map((file) => fs.promises.unlink(file)));
4747

4848
// Find and remove empty directories
49-
const directories = await globby(['**/*'], {
49+
const directories = await glob(['**/*'], {
5050
cwd: dir,
5151
absolute: true,
5252
onlyDirectories: true,

0 commit comments

Comments
 (0)