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

Function showNonLatestTagWarning

packages/cli/src/commands/publish/index.ts:24–39  ·  view source on GitHub ↗
(tag?: string, preState?: PreState)

Source from the content-addressed store, hash-verified

22);
23
24function showNonLatestTagWarning(tag?: string, preState?: PreState) {
25 warn(importantSeparator);
26 if (preState) {
27 warn(
28 `You are in prerelease mode so packages will be published to the ${pc.cyan(
29 preState.tag
30 )}
31 dist tag except for packages that have not had normal releases which will be published to ${pc.cyan(
32 "latest"
33 )}`
34 );
35 } else if (tag !== "latest") {
36 warn(`Packages will be released under the ${tag} tag`);
37 }
38 warn(importantEnd);
39}
40
41export default async function publish(
42 cwd: string,

Callers 1

publishFunction · 0.85

Calls 1

warnFunction · 0.90

Tested by

no test coverage detected