MCPcopy Index your code
hub / github.com/changesets/changesets / SimplePrint

Function SimplePrint

packages/cli/src/commands/status/index.ts:72–82  ·  view source on GitHub ↗
(type: VersionType, releases: Array<Release>)

Source from the content-addressed store, hash-verified

70}
71
72function SimplePrint(type: VersionType, releases: Array<Release>) {
73 const packages = releases.filter((r) => r.type === type);
74 if (packages.length) {
75 info(`Packages to be bumped at ${pc.green(type)}:\n`);
76
77 const pkgs = packages.map(({ name }) => `- ${name}`).join("\n");
78 log(pc.green(pkgs));
79 } else {
80 info(`${pc.green("NO")} packages to be bumped at ${pc.green(type)}`);
81 }
82}
83
84function verbosePrint(
85 type: VersionType,

Callers

nothing calls this directly

Calls 2

infoFunction · 0.90
logFunction · 0.90

Tested by

no test coverage detected