packages/scripts/promoteRelease.js
/**
 * Get the npm distribution tag for a given version
 *
 * @param {string} release
 * @param {string} version
 */
Get the npm distribution tag for a given version
@param {string} release
@param {string} version
Get the npm distribution tag for a given version @param { string } release @param { string } version
function distTag(release, version) {
  if (release === 'legacy') {
    return `v${version}-stable`;
  } else {
    return release;
  }
}
function distTag ( release , version ) { if ( release === 'legacy' ) { return ` ${ version } ` ; } else { return release ; } }
Get the npm distribution tag for a given version
 @param {string} release
 @param {string} version
Get the npm distribution tag for a given version @param { string } release @param { string } version