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

Function changed

packages/publish/src/changed.ts:47–64  ·  view source on GitHub ↗
(options: ChangedFlags)

Source from the content-addressed store, hash-verified

45};
46
47const changed = async (options: ChangedFlags) => {
48 consola.info(colors.bold(colors.blue('Checking packages...')));
49 // CLI flags take precedence over default config
50 const config = await mergeFlags(options);
51 const diff = await getChanged(config);
52
53 if (diff.length > 0) {
54 consola.info(colors.bold(colors.blue('Packages changed:')));
55 for (const item of diff) {
56 consola.info(item.name);
57 }
58 consola.info(
59 colors.bold(colors.magenta(`${diff.length} packages changed.`)),
60 );
61 } else {
62 consola.info(colors.bold(colors.red('No packages changed.')));
63 }
64};
65
66export { changed, getChanged };

Callers 1

cli.tsFile · 0.90

Calls 3

mergeFlagsFunction · 0.90
getChangedFunction · 0.85
infoMethod · 0.65

Tested by

no test coverage detected