diff --git a/bun.lockb b/bun.lockb index 9236104b..154d207c 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 20736c14..d67d8c0c 100644 --- a/package.json +++ b/package.json @@ -15,12 +15,12 @@ "@rollup/plugin-node-resolve": "^13.3.0", "acorn": "^8.12.1", "comment-parser": "^1.4.1", - "fast-glob": "^3.3.2", "prettier": "^2.8.8", "rollup": "^2.79.1", "rollup-plugin-svelte": "^7.2.2", "svelte": "^4.2.19", "svelte-preprocess": "^5.1.4", + "tinyglobby": "^0.2.6", "typescript": "^5.5.4" }, "devDependencies": { diff --git a/src/rollup-plugin.ts b/src/rollup-plugin.ts index 5967b73f..96754ff4 100644 --- a/src/rollup-plugin.ts +++ b/src/rollup-plugin.ts @@ -1,7 +1,7 @@ import * as fs from "fs"; import * as fsp from "fs/promises"; import * as path from "path"; -import * as fg from "fast-glob"; +import { globSync } from "tinyglobby"; import writeTsDefinitions, { WriteTsDefinitionsOptions } from "./writer/writer-ts-definitions"; import writeJson, { WriteJsonOptions } from "./writer/writer-json"; import writeMarkdown, { WriteMarkdownOptions } from "./writer/writer-markdown"; @@ -62,7 +62,7 @@ export async function generateBundle(input: string, glob: boolean) { const exports = parseExports(entry, dir); if (glob) { - fg.sync([`${dir}/**/*.svelte`]).forEach((file) => { + globSync([`${dir}/**/*.svelte`]).forEach((file) => { const moduleName = path.parse(file).name.replace(/\-/g, ""); let source = normalizeSeparators("./" + path.relative(dir, file));