Skip to content

Commit

Permalink
refactor: replace fast-glob with tinyglobby (#237)
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperchupuDev authored Oct 5, 2024
1 parent d0dd1f7 commit 82b7c9a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 7 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"cssnano": "^7.0.6",
"defu": "^6.1.4",
"esbuild": "^0.24.0",
"fast-glob": "^3.3.2",
"jiti": "^1.21.6",
"mlly": "^1.7.1",
"pathe": "^1.1.2",
"pkg-types": "^1.2.0",
"postcss": "^8.4.45",
"postcss-nested": "^6.2.0",
"semver": "^7.6.3"
"semver": "^7.6.3",
"tinyglobby": "^0.2.9"
},
"devDependencies": {
"@types/node": "^22.7.4",
Expand Down
33 changes: 30 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { getDeclarations, normalizeCompilerOptions } from "./utils/dts";
import { getVueDeclarations } from "./utils/vue-dts";
import { LoaderName } from "./loaders";
import fg from "fast-glob";
import { glob } from "tinyglobby";

export interface MkdistOptions extends LoaderOptions {
rootDir?: string;
Expand Down Expand Up @@ -44,7 +44,7 @@ export async function mkdist(
}

// Scan input files
const filePaths = await fg(options.pattern || "**", {
const filePaths = await glob(options.pattern || "**", {
absolute: false,
cwd: options.srcDir,
});
Expand Down

0 comments on commit 82b7c9a

Please sign in to comment.