Skip to content

Commit

Permalink
feat: support globOptions (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 authored Dec 15, 2024
1 parent 9390803 commit bce6a78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/make.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ import {
import { getDeclarations, normalizeCompilerOptions } from "./utils/dts";
import { getVueDeclarations } from "./utils/vue-dts";
import { LoaderName } from "./loaders";
import { glob } from "tinyglobby";
import { glob, type GlobOptions } from "tinyglobby";

export interface MkdistOptions extends LoaderOptions {
rootDir?: string;
srcDir?: string;
pattern?: string | string[];
globOptions?: GlobOptions;
distDir?: string;
cleanDist?: boolean;
loaders?: (LoaderName | Loader)[];
Expand Down Expand Up @@ -58,6 +59,7 @@ export async function mkdist(
ignore: ignored,
cwd: options.srcDir,
dot: true,
...options.globOptions,
});

const files: InputFile[] = filePaths.map((path) => {
Expand Down

0 comments on commit bce6a78

Please sign in to comment.