@plexus-ms/cli 0.100.0 → 0.101.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 +5 -0
  2. package/package.json +2 -2
package/dist/plx.js CHANGED
@@ -7589,6 +7589,7 @@ var PLX_PIN = "npm:@plexus-ms/cli";
7589
7589
  var bumpPlxPin = (text, train) => text.replace(/("npm:@plexus-ms\/cli"\s*=\s*(?:\{\s*version\s*=\s*)?")[^"]*(")/g, `$1${train}$2`);
7590
7590
  var CONFIG_PIN = "@plexus-ms/config";
7591
7591
  var bumpConfigPin = (text, train) => text.replace(/("@plexus-ms\/config":\s*")(?!workspace:|catalog:)[^"]*(")/g, `$1${train}$2`);
7592
+ var bumpCatalogPin = (text, train) => text.replace(/^(\s+"@plexus-ms\/config":\s*)\S+$/m, `$1${train}`);
7592
7593
  var stampStandard = (text, train, today2) => setFrontmatterField(setFrontmatterField(text, "version", train), "timestamp", today2);
7593
7594
  var stampChanged = (text, train) => setFrontmatterField(text, "changed", train, { after: "binds" });
7594
7595
  var hasConflictMarkers = (text) => /^<<<<<<< /m.test(text);
@@ -8803,6 +8804,8 @@ async function updateSite(ctx, consumer, site, clone, upstream, summary) {
8803
8804
  ctx.say(` ${line}`);
8804
8805
  if (ctx.dryRun)
8805
8806
  await previewCommit(ctx, clone, `plx preview: ${site.rel} updated`);
8807
+ else
8808
+ await ctx.stage(run("git", ["add", "-A"], { cwd: clone }));
8806
8809
  }
8807
8810
  async function syncSiteMarker(ctx, site, target) {
8808
8811
  const marker = await ctx.readFile(join8(target, MARKER_FILE)).catch(() => void 0);
@@ -9252,6 +9255,8 @@ async function planBookkeeping(ctx, train, repos2, next, today2) {
9252
9255
  await edit(r, f, `plx pin \u2192 ${next}`, (t) => bumpPlxPin(t, next));
9253
9256
  for (const f of await grep(r, `"${CONFIG_PIN}"`, ["*package.json", "*package.json.jinja"]))
9254
9257
  await edit(r, f, `${CONFIG_PIN} pin \u2192 ${next}`, (t) => bumpConfigPin(t, next));
9258
+ for (const f of await grep(r, `"${CONFIG_PIN}"`, ["*pnpm-workspace.yaml", "*pnpm-workspace.yaml.jinja"]))
9259
+ await edit(r, f, `${CONFIG_PIN} catalog entry \u2192 ${next}`, (t) => bumpCatalogPin(t, next));
9255
9260
  }
9256
9261
  const comp = repo("compendium");
9257
9262
  if (comp) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexus-ms/cli",
3
- "version": "0.100.0",
3
+ "version": "0.101.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.4",
27
- "@plexus-ms/lib": "0.100.0",
27
+ "@plexus-ms/lib": "0.101.0",
28
28
  "commander": "^15.0.0"
29
29
  },
30
30
  "devDependencies": {