From bce6a781f78fc69d87494d83b0ae57605c3691d7 Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Sun, 15 Dec 2024 21:20:29 +0100 Subject: [PATCH] feat: support `globOptions` (#266) --- src/make.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/make.ts b/src/make.ts index b585092..b766122 100644 --- a/src/make.ts +++ b/src/make.ts @@ -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)[]; @@ -58,6 +59,7 @@ export async function mkdist( ignore: ignored, cwd: options.srcDir, dot: true, + ...options.globOptions, }); const files: InputFile[] = filePaths.map((path) => {