@plexus-ms/cli 0.100.0-rc.3 → 0.100.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 +18 -4
  2. package/package.json +2 -2
package/dist/plx.js CHANGED
@@ -8248,7 +8248,7 @@ function nextMinor(version2) {
8248
8248
  return `${major}.${Number(minor) + 1}.0`;
8249
8249
  }
8250
8250
  function latestTag(tags) {
8251
- return tags.filter((t) => /^v?\d/.test(t)).sort((a, b) => compareTrains(a.replace(/^v/, ""), b.replace(/^v/, ""))).at(-1);
8251
+ return tags.filter((t) => /^v?\d+(\.\d+){1,2}$/.test(t)).sort((a, b) => compareTrains(a.replace(/^v/, ""), b.replace(/^v/, ""))).at(-1);
8252
8252
  }
8253
8253
  async function readTrain(ctx, upstream) {
8254
8254
  const repos2 = [];
@@ -8684,6 +8684,10 @@ import { join as join8, relative as relative3 } from "node:path";
8684
8684
  var isClean = (s) => s.conflicted.length === 0 && s.failed.length === 0 && s.skipped.length === 0;
8685
8685
  var BASE_TAG = "ship-base";
8686
8686
  var trainBranch = (train) => `train/${train}`;
8687
+ var copierIn = (clone, args) => [
8688
+ "env",
8689
+ [`MISE_IGNORED_CONFIG_PATHS=${clone}`, "mise", ...copierVia(args)]
8690
+ ];
8687
8691
  async function propagate(ctx, workspace, train) {
8688
8692
  const summary = {
8689
8693
  train,
@@ -8758,11 +8762,21 @@ async function updateSite(ctx, consumer, site, clone, upstream, summary) {
8758
8762
  const answers = await ctx.readFile(join8(target, ANSWERS_FILE));
8759
8763
  await ctx.stage(write(join8(target, ANSWERS_FILE), answers.replace(/^_src_path: .*$/m, `_src_path: ${localPreset}`)));
8760
8764
  await previewCommit(ctx, clone, `plx preview: ${site.rel} reads ${localPreset} from the local checkout`);
8761
- await ctx.stage(run("mise", copierVia(["update", "--skip-answered", "--trust", "--defaults", "--skip-tasks", "--vcs-ref", "main"]), { cwd: target }));
8765
+ await ctx.stage(run(...copierIn(clone, [
8766
+ "update",
8767
+ "--skip-answered",
8768
+ "--trust",
8769
+ "--defaults",
8770
+ "--skip-tasks",
8771
+ "--vcs-ref",
8772
+ "main"
8773
+ ]), {
8774
+ cwd: target
8775
+ }));
8762
8776
  } else {
8763
8777
  ctx.say(`\u2192 ${site.rel}: copier update`);
8764
8778
  const args = ["update", "--skip-answered", "--trust", "--skip-tasks", ...ctx.yes ? ["--defaults"] : []];
8765
- await ctx.apply([run("mise", copierVia(args), { cwd: target, interactive: true })]);
8779
+ await ctx.apply([run(...copierIn(clone, args), { cwd: target, interactive: true })]);
8766
8780
  }
8767
8781
  } catch (error) {
8768
8782
  ctx.say(` \u2717 FAILED \u2014 copier update exited nonzero${detail(error)}`);
@@ -9192,7 +9206,7 @@ async function awaitPublished(ctx, next, wait) {
9192
9206
  for (; ; ) {
9193
9207
  const still = [];
9194
9208
  for (const name of missing) {
9195
- const seen = (await ctx.read("npm", ["view", `${name}@${next}`, "version"]).catch(() => "")).trim();
9209
+ const seen = (await ctx.read("npm", ["view", `${name}@${next}`, "version", "--prefer-online"]).catch(() => "")).trim();
9196
9210
  if (seen !== next)
9197
9211
  still.push(name);
9198
9212
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plexus-ms/cli",
3
- "version": "0.100.0-rc.3",
3
+ "version": "0.100.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-rc.3",
27
+ "@plexus-ms/lib": "0.100.0",
28
28
  "commander": "^15.0.0"
29
29
  },
30
30
  "devDependencies": {