UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

17 lines (14 loc) 637 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = newerVersionTemplate; const helpPhrase = 'use checkout to merge latest versions with current changes. you can also tag current changes as a newer version with the --ignore-newest-version flag'; function newerVersionTemplate(newerVersions) { function formatOne(newerVersion) { return `unable to tag ${newerVersion.componentId} current version ${newerVersion.currentVersion} is older than the latest ${newerVersion.latestVersion}.`; } const result = `${newerVersions.map(formatOne).join('\n')}\n${helpPhrase}`; return result; }