Skip to content

Commit 23f9852

Browse files
authored
refactor(rollup-plugin): replace fast-glob with tinyglobby (#132)
Closes #131
1 parent a74844c commit 23f9852

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bun.lockb

-3.17 KB
Binary file not shown.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"@rollup/plugin-node-resolve": "^13.3.0",
1616
"acorn": "^8.12.1",
1717
"comment-parser": "^1.4.1",
18-
"fast-glob": "^3.3.2",
1918
"prettier": "^2.8.8",
2019
"rollup": "^2.79.1",
2120
"rollup-plugin-svelte": "^7.2.2",
2221
"svelte": "^4.2.19",
2322
"svelte-preprocess": "^5.1.4",
23+
"tinyglobby": "^0.2.6",
2424
"typescript": "^5.5.4"
2525
},
2626
"devDependencies": {

src/rollup-plugin.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as fs from "fs";
22
import * as fsp from "fs/promises";
33
import * as path from "path";
4-
import * as fg from "fast-glob";
4+
import { globSync } from "tinyglobby";
55
import writeTsDefinitions, { WriteTsDefinitionsOptions } from "./writer/writer-ts-definitions";
66
import writeJson, { WriteJsonOptions } from "./writer/writer-json";
77
import writeMarkdown, { WriteMarkdownOptions } from "./writer/writer-markdown";
@@ -62,7 +62,7 @@ export async function generateBundle(input: string, glob: boolean) {
6262
const exports = parseExports(entry, dir);
6363

6464
if (glob) {
65-
fg.sync([`${dir}/**/*.svelte`]).forEach((file) => {
65+
globSync([`${dir}/**/*.svelte`]).forEach((file) => {
6666
const moduleName = path.parse(file).name.replace(/\-/g, "");
6767
let source = normalizeSeparators("./" + path.relative(dir, file));
6868

0 commit comments

Comments
 (0)