Function
showNonLatestTagWarning
(tag?: string, preState?: PreState)
Source from the content-addressed store, hash-verified
| 22 | ); |
| 23 | |
| 24 | function 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 | |
| 41 | export default async function publish( |
| 42 | cwd: string, |
Tested by
no test coverage detected