shiplane 0.6.0-ci-setup-action.d7598bc → 0.6.0-fix-shiplane-ship-node-cache.3dccda9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as commandLine, C as initRelease, D as checkStatus, E as refreshEditorSchema, F as keysAt, I as nodeFiles, N as paint, O as requirementsOf, P as ENVIRONMENTS, S as removeUnit, _ as tagRelease, a as findConfig, b as prepareRelease, c as promote, d as docsFor, f as branchRelease, g as missingTags, h as readStatus, j as environmentLabel, k as signInsOf, l as planShips, m as shipTo, n as composeSetup, r as loadReleaseOnDisk, s as setup, t as composeContext, u as newAdapter, v as pickScope, w as doctor, x as addUnit, y as openReleasePr } from "./compose-D4iloRtV.js";
2
+ import { A as commandLine, C as initRelease, D as checkStatus, E as refreshEditorSchema, F as keysAt, I as nodeFiles, N as paint, O as requirementsOf, P as ENVIRONMENTS, S as removeUnit, _ as tagRelease, a as findConfig, b as prepareRelease, c as promote, d as docsFor, f as branchRelease, g as missingTags, h as readStatus, j as environmentLabel, k as signInsOf, l as planShips, m as shipTo, n as composeSetup, r as loadReleaseOnDisk, s as setup, t as composeContext, u as newAdapter, v as pickScope, w as doctor, x as addUnit, y as openReleasePr } from "./compose-BTQXZqHM.js";
3
3
  import { z } from "zod";
4
4
  import fs from "node:fs";
5
5
  import path from "node:path";
@@ -1,4 +1,4 @@
1
- import { A as isEnvVarName, D as ENV_VAR_NAME, E as repositoryOfPr, O as EnvToCheck, S as branchSlug, T as installSpec, _ as testTag, a as backendService, b as branchChoice, d as channelFor, f as channelProblem, h as nextNumber, i as mobileApp, k as findUnset, m as isNumbered, n as webApp, o as releaseFlow, r as publishedPackage, t as shellServerHosting, v as testVersion, w as installLine, x as branchComment, y as BRANCH_COMMENT_MARKER } from "./shell-server-hosting.adapter-8IgiuCgh.js";
1
+ import { C as installLine, D as findUnset, E as EnvToCheck, O as isEnvVarName, T as ENV_VAR_NAME, _ as testTag, a as backendService, b as branchChoice, d as channelFor, f as channelProblem, h as nextNumber, i as mobileApp, m as isNumbered, n as webApp, o as releaseFlow, r as publishedPackage, t as shellServerHosting, v as testVersion, w as repositoryOfPr, x as branchComment, y as BRANCH_COMMENT_MARKER } from "./shell-server-hosting.adapter-CvOcC6Wh.js";
2
2
  import { C as firstRelease, D as tagFormatNamed, E as releaseTags, M as expandPatterns, N as workspacePatterns, O as tagName, S as changelogSection, T as previousTag, _ as packageBumps, a as deployEstimate, b as TAG_FORMATS, c as yesAllowed, f as onlyVersionFiles, g as changesetApps, h as appBumps, j as nextVersion, l as CommandFailed, m as webShip, n as resolveDisplay, o as minutesBudget, p as shipsFrom, s as releaseSource, t as progressBar, u as deployRunTitle, v as splitChangesets, x as cameWithRelease, y as DEFAULT_TAG_FORMAT } from "./display-CfV4G1TR.js";
3
3
  import { createRequire } from "node:module";
4
4
  import { z } from "zod";
@@ -1761,27 +1761,18 @@ const publishedVersionsOf = async (context, unit, here) => {
1761
1761
  if (!target || !read) throw new Error(`${unit.name}'s registry cannot list its versions`);
1762
1762
  return read(decideContext(context), target.input);
1763
1763
  };
1764
- /** The branch's slug, shortened by any registry that cannot take it whole, with a warning. */
1765
- const snapshotSlug = (context, branch, units) => {
1766
- const whole = branchSlug(branch);
1767
- const slug = units.reduce((fitted, unit) => moduleOf(context, unit)?.fitSlug?.(decideContext(context), fitted) ?? fitted, whole);
1768
- if (slug !== whole) context.output.line(` ${paint("yellow", "!")} branch name too long for the registry, shortened to ${slug}`);
1769
- return slug;
1770
- };
1771
1764
  /**
1772
1765
  * The units this test version covers, at test versions on the channel: npm packages publish, the
1773
1766
  * other units are not available as test releases yet. A numbered channel reads each package's published versions for its next number.
1774
1767
  */
1775
1768
  const planBranch = async (context, { here, channel }) => {
1776
1769
  const changed = await pendingUnits(context);
1777
- const registryUnits = changed.filter(({ unit }) => isRegistry(context, unit)).map(({ unit }) => unit);
1778
- const branch = isNumbered(channel) ? here.branch : snapshotSlug(context, here.branch, registryUnits);
1779
1770
  const publish = await Promise.all(changed.filter(({ unit }) => isRegistry(context, unit)).map(async ({ unit, base }) => ({
1780
1771
  unit,
1781
1772
  version: testVersion({
1782
1773
  next: base,
1783
1774
  channel,
1784
- branch,
1775
+ branch: here.branch,
1785
1776
  sha: here.head,
1786
1777
  n: isNumbered(channel) ? nextNumber({
1787
1778
  published: await publishedVersionsOf(context, unit, here),
@@ -1792,7 +1783,7 @@ const planBranch = async (context, { here, channel }) => {
1792
1783
  })));
1793
1784
  return {
1794
1785
  channel,
1795
- tag: testTag(channel, branch),
1786
+ tag: testTag(channel, here.branch),
1796
1787
  publish,
1797
1788
  others: changed.filter(({ unit }) => !isRegistry(context, unit)).map(({ unit }) => unit.name)
1798
1789
  };
@@ -1892,11 +1883,7 @@ const printPlan = ({ output, progress }, plan) => {
1892
1883
  ], ...plan.publish.map(({ unit, version }) => [
1893
1884
  unit.packageName,
1894
1885
  version,
1895
- `npm i ${installSpec({
1896
- name: unit.packageName,
1897
- version,
1898
- tag: plan.tag
1899
- })}`
1886
+ `npm i ${unit.packageName}@${plan.tag}`
1900
1887
  ])]);
1901
1888
  output.line(paint("dim", ` ${header}`));
1902
1889
  rows.forEach((row) => output.line(` ${row}`));
@@ -5557,4 +5544,4 @@ const composeSetup = async (root, io = {}) => {
5557
5544
  //#endregion
5558
5545
  export { commandLine as A, initRelease as C, checkStatus as D, refreshEditorSchema as E, keysAt as F, nodeFiles as I, optionsFor as M, paint as N, requirementsOf as O, ENVIRONMENTS as P, removeUnit as S, CONFIG_FILE as T, tagRelease as _, findConfig as a, prepareRelease as b, promote as c, docsFor as d, branchRelease as f, missingTags as g, readStatus as h, coreDir as i, environmentLabel as j, signInsOf as k, planShips as l, shipTo as m, composeSetup as n, systemShell as o, releaseToPreview as p, loadReleaseOnDisk as r, setup as s, composeContext as t, newAdapter as u, pickScope as v, doctor as w, addUnit as x, openReleasePr as y };
5559
5546
 
5560
- //# sourceMappingURL=compose-D4iloRtV.js.map
5547
+ //# sourceMappingURL=compose-BTQXZqHM.js.map