@plexus-ms/cli 0.106.1 → 0.108.0

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.
Files changed (2) hide show
  1. package/dist/plx.js +4 -4
  2. package/package.json +2 -2
package/dist/plx.js CHANGED
@@ -7665,7 +7665,7 @@ async function readCatalog(ctx, compendium) {
7665
7665
  // ../lib/dist/changedApps.js
7666
7666
  import { join as join2 } from "node:path";
7667
7667
  var BOOKKEEPING = /(^|\/)(PLEXUS\.md|\.copier-answers\.yml)$/;
7668
- var GLOBALS = /^(pnpm-lock\.yaml|pnpm-workspace\.yaml|package\.json|turbo\.json|mise\.toml|\.npmrc|\.node-version)$/;
7668
+ var GLOBALS = /^(pnpm-lock\.yaml|pnpm-workspace\.yaml|package\.json|turbo\.json|mise\.toml|\.npmrc)$/;
7669
7669
  var NO_REF = /^0*$/;
7670
7670
  async function selectChangedApps(input) {
7671
7671
  const all = [...input.all].sort();
@@ -8555,7 +8555,7 @@ async function deploy(ctx, options) {
8555
8555
  if (hadPrev !== false)
8556
8556
  await remote.exec(`cd ${D} && cp -p compose.yaml ${INCOMING}/compose.yaml.prev`);
8557
8557
  await remote.exec(`cd ${D} && mv ${INCOMING}/compose.yaml compose.yaml`);
8558
- await remote.exec(`${dc} up -d`);
8558
+ await remote.exec(`${dc} up -d --remove-orphans`);
8559
8559
  resolvedUrl ??= options.healthUrl || await resolveHealthUrl(remote, D, dc, ctx);
8560
8560
  const started = Date.now();
8561
8561
  const healthy = await remote.test(poll(retries), true);
@@ -8563,7 +8563,7 @@ async function deploy(ctx, options) {
8563
8563
  result.live = await remote.read(liveImage) || image;
8564
8564
  result.healthy = true;
8565
8565
  if (ctx.dryRun)
8566
- ctx.say(" (on failure: restore the previous compose.yaml, up -d, poll again)");
8566
+ ctx.say(" (on failure: restore the previous compose.yaml, up -d --remove-orphans, poll again)");
8567
8567
  else
8568
8568
  ctx.done(`${result.live ?? "the app"} is live and healthy`);
8569
8569
  return result;
@@ -8579,7 +8579,7 @@ async function deploy(ctx, options) {
8579
8579
  }
8580
8580
  await remote.exec(`cd ${D} && cp -p ${INCOMING}/compose.yaml.prev compose.yaml`);
8581
8581
  ctx.say(`\u21A9 rolling back to ${result.previous ?? "the previous compose.yaml"}`);
8582
- await remote.exec(`${dc} up -d`);
8582
+ await remote.exec(`${dc} up -d --remove-orphans`);
8583
8583
  result.rolledBack = true;
8584
8584
  if (await remote.test(poll(retries))) {
8585
8585
  result.live = result.previous;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexus-ms/cli",
3
- "version": "0.106.1",
3
+ "version": "0.108.0",
4
4
  "description": "plx, the Plexus command-line tool: a single-script adapter over @plexus-ms/lib",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "type": "module",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "@inquirer/prompts": "^8.7.5",
27
- "@plexus-ms/lib": "0.106.1",
27
+ "@plexus-ms/lib": "0.108.0",
28
28
  "commander": "^15.0.0"
29
29
  },
30
30
  "devDependencies": {