MCPcopy Create free account
hub / github.com/fontsource/fontsource / getPackages

Function getPackages

packages/publish/src/utils.ts:24–31  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

22};
23
24const getPackages = async (dir: string): Promise<string[]> => {
25 const packages = await fs.readdir(dir, {
26 withFileTypes: true,
27 });
28 return packages
29 .filter((dirent) => dirent.isDirectory())
30 .map((dirent) => dirent.name);
31};
32
33const mergeFlags = async (options: Flags): Promise<Context> => {
34 const flags: Partial<Context> = {};

Callers 1

getChangedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected