Skip to content

Commit

Permalink
refactor: replace globby w/ fast-glob (#230)
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW authored Jul 16, 2024
1 parent 039de1a commit caa8e2a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"cssnano": "^7.0.4",
"defu": "^6.1.4",
"esbuild": "^0.23.0",
"fast-glob": "^3.3.2",
"globby": "^14.0.2",
"jiti": "^1.21.6",
"mlly": "^1.7.1",
Expand Down
3 changes: 3 additions & 0 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,6 +13,7 @@ import {
import { getDeclarations, normalizeCompilerOptions } from "./utils/dts";
import { getVueDeclarations } from "./utils/vue-dts";
import { LoaderName } from "./loaders";
import fg from "fast-glob";

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

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

0 comments on commit caa8e2a

Please sign in to comment.