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

Function verbosePrint

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

Source from the content-addressed store, hash-verified

82}
83
84function verbosePrint(
85 type: VersionType,
86 releases: Array<ComprehensiveRelease>
87) {
88 const packages = releases.filter((r) => r.type === type);
89 if (packages.length) {
90 info(`Packages to be bumped at ${pc.green(type)}`);
91
92 for (const { name, newVersion: version, changesets } of packages) {
93 log(`- ${pc.green(name)} ${pc.cyan(version)}`);
94 for (const c of changesets) {
95 log(` - ${pc.blue(`.changeset/${c}.md`)}`);
96 }
97 }
98 } else {
99 info(
100 `Running release would release ${pc.red("NO")} packages as a ${pc.green(
101 type
102 )}`
103 );
104 }
105}

Callers

nothing calls this directly

Calls 2

infoFunction · 0.90
logFunction · 0.90

Tested by

no test coverage detected