Skip to content

Commit f0dc90a

Browse files
feat: switch to fast-glob for performance
1 parent 2694e5b commit f0dc90a

File tree

4 files changed

+35
-42
lines changed

4 files changed

+35
-42
lines changed

package-lock.json

Lines changed: 31 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"command-line-usage": "^6.1.0",
5454
"commander": "^5.1.0",
5555
"git-changed-files": "^1.0.0",
56-
"glob": "^7.1.6",
56+
"fast-glob": "^3.2.12",
5757
"ora": "^4.1.0",
5858
"pkg-up": "^3.1.0",
5959
"simple-git": "^3.3.0",

src/conductor/get-files-paths.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { sync } from 'glob';
1+
import { sync } from 'fast-glob';
22

33
export function getFilesPaths(source: string[]): string[] {
4-
return source.map((pattern) => sync(pattern, { nodir: true })).flat();
4+
return source.map((pattern) => sync(pattern, { onlyFiles: true })).flat();
55
}

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { sync } from 'glob';
1+
import { sync } from 'fast-glob';
22

33
import { getGroupOrder } from './conductor/get-group-order';
44
import { getThirdParty } from './conductor/get-third-party';

0 commit comments

Comments
 (0)