@swmansion/argent 0.29.1-next.12 → 0.29.1-next.14

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-cmds.mjs CHANGED
@@ -35301,7 +35301,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
35301
35301
  var SESSION_ID2 = randomUUID5();
35302
35302
  function readCliVersion() {
35303
35303
  if (true) {
35304
- return "0.29.1-next.12";
35304
+ return "0.29.1-next.14";
35305
35305
  }
35306
35306
  return "0.0.0";
35307
35307
  }
@@ -16774,7 +16774,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
16774
16774
  var SESSION_ID = randomUUID4();
16775
16775
  function readCliVersion() {
16776
16776
  if (true) {
16777
- return "0.29.1-next.12";
16777
+ return "0.29.1-next.14";
16778
16778
  }
16779
16779
  return "0.0.0";
16780
16780
  }
@@ -20093,52 +20093,6 @@ function resolveInstallModeFromFlags(opts) {
20093
20093
  return null;
20094
20094
  }
20095
20095
 
20096
- // ../argent-installer/src/install-targets.ts
20097
- function parseTargetFlags(args) {
20098
- return { global: args.includes("--global"), local: args.includes("--local") };
20099
- }
20100
- function decideInstallTargets(ctx) {
20101
- const { flags } = ctx;
20102
- if (flags.global || flags.local) {
20103
- const targets = [];
20104
- if (flags.global) targets.push("global");
20105
- if (flags.local) targets.push("local");
20106
- return { kind: "targets", targets, reason: "flags" };
20107
- }
20108
- if (ctx.globalPresent && ctx.localPresent) {
20109
- if (ctx.nonInteractive) {
20110
- return {
20111
- kind: "targets",
20112
- targets: ctx.nonInteractiveBothDefault,
20113
- reason: "noninteractive-both"
20114
- };
20115
- }
20116
- return { kind: "prompt" };
20117
- }
20118
- return { kind: "targets", targets: [ctx.defaultTarget], reason: "single" };
20119
- }
20120
- async function promptInstallTargets(verb) {
20121
- const selected = await multiselect({
20122
- message: `argent is installed both globally and in this project. Which should ${verb === "update" ? "update" : "removal"} affect?`,
20123
- options: [
20124
- {
20125
- value: "global",
20126
- label: "Global install",
20127
- hint: "the argent command on your PATH"
20128
- },
20129
- {
20130
- value: "local",
20131
- label: "This project's devDependency",
20132
- hint: `${PACKAGE_NAME} in this project's node_modules`
20133
- }
20134
- ],
20135
- initialValues: verb === "update" ? ["global", "local"] : ["local"],
20136
- required: true
20137
- });
20138
- if (isCancel(selected)) return "cancel";
20139
- return selected;
20140
- }
20141
-
20142
20096
  // ../argent-installer/src/utils.ts
20143
20097
  var PACKAGE_ROOT = resolvePackageRoot(import.meta.dirname);
20144
20098
  function resolveBundledDir(dirName) {
@@ -23289,6 +23243,52 @@ var import_picocolors11 = __toESM(require_picocolors(), 1);
23289
23243
  var import_semver5 = __toESM(require_semver2(), 1);
23290
23244
  import * as path24 from "node:path";
23291
23245
 
23246
+ // ../argent-installer/src/install-targets.ts
23247
+ function parseTargetFlags(args) {
23248
+ return { global: args.includes("--global"), local: args.includes("--local") };
23249
+ }
23250
+ function decideInstallTargets(ctx) {
23251
+ const { flags } = ctx;
23252
+ if (flags.global || flags.local) {
23253
+ const targets = [];
23254
+ if (flags.global) targets.push("global");
23255
+ if (flags.local) targets.push("local");
23256
+ return { kind: "targets", targets, reason: "flags" };
23257
+ }
23258
+ if (ctx.globalPresent && ctx.localPresent) {
23259
+ if (ctx.nonInteractive) {
23260
+ return {
23261
+ kind: "targets",
23262
+ targets: ctx.nonInteractiveBothDefault,
23263
+ reason: "noninteractive-both"
23264
+ };
23265
+ }
23266
+ return { kind: "prompt" };
23267
+ }
23268
+ return { kind: "targets", targets: [ctx.defaultTarget], reason: "single" };
23269
+ }
23270
+ async function promptInstallTargets(verb) {
23271
+ const selected = await multiselect({
23272
+ message: `argent is installed both globally and in this project. Which should ${verb === "update" ? "update" : "removal"} affect?`,
23273
+ options: [
23274
+ {
23275
+ value: "global",
23276
+ label: "Global install",
23277
+ hint: "the argent command on your PATH"
23278
+ },
23279
+ {
23280
+ value: "local",
23281
+ label: "This project's devDependency",
23282
+ hint: `${PACKAGE_NAME} in this project's node_modules`
23283
+ }
23284
+ ],
23285
+ initialValues: verb === "update" ? ["global", "local"] : ["local"],
23286
+ required: true
23287
+ });
23288
+ if (isCancel(selected)) return "cancel";
23289
+ return selected;
23290
+ }
23291
+
23292
23292
  // ../argent-installer/src/update-target.ts
23293
23293
  var import_update_core = __toESM(require_dist2(), 1);
23294
23294
  async function resolveInstallableUpdateTarget(pm, current) {