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

Function mergeFlags

packages/publish/src/utils.ts:33–44  ·  view source on GitHub ↗
(options: Flags)

Source from the content-addressed store, hash-verified

31};
32
33const mergeFlags = async (options: Flags): Promise<Context> => {
34 const flags: Partial<Context> = {};
35 // CLI args come in string format
36 if (options.packages) {
37 flags.packages = options.packages.split(',');
38 options.packages = undefined;
39 }
40
41 Object.assign(flags, options);
42
43 return defu(flags, await fs.readJson('font-publish.json')) as Context;
44};
45
46export { getPackages, mergeFlags };

Callers 4

bumpFunction · 0.90
changedFunction · 0.90
publishPackagesFunction · 0.90
utils.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected