@oclif/plugin-test-esbuild 0.5.105 → 0.5.107

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/README.md CHANGED
@@ -17,7 +17,7 @@ $ npm install -g @oclif/plugin-test-esbuild
17
17
  $ bundle COMMAND
18
18
  running command...
19
19
  $ bundle (--version)
20
- @oclif/plugin-test-esbuild/0.5.105 linux-x64 node-v22.20.0
20
+ @oclif/plugin-test-esbuild/0.5.107 linux-x64 node-v24.11.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-AOQIRGV5.js";
3
+ } from "./chunk-BVHRPYVY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-AOQIRGV5.js";
3
+ } from "./chunk-BVHRPYVY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -254,7 +254,7 @@ var require_package = __commonJS({
254
254
  module.exports = {
255
255
  name: "@oclif/core",
256
256
  description: "base library for oclif CLIs",
257
- version: "4.5.6",
257
+ version: "4.8.0",
258
258
  author: "Salesforce",
259
259
  bugs: "https://github.com/oclif/core/issues",
260
260
  dependencies: {
@@ -216266,8 +216266,21 @@ var require_docopts = __commonJS({
216266
216266
  if (Array.isArray(flag.dependsOn)) {
216267
216267
  this.combineElementsToFlag(elementMap, flag.name, flag.dependsOn, " ");
216268
216268
  }
216269
+ let exclusive;
216269
216270
  if (Array.isArray(flag.exclusive)) {
216270
- this.combineElementsToFlag(elementMap, flag.name, flag.exclusive, " | ");
216271
+ exclusive = new Set(flag.exclusive);
216272
+ }
216273
+ if (Array.isArray(flag.combinable)) {
216274
+ const combinableFlags = new Set(flag.combinable);
216275
+ exclusive ??= /* @__PURE__ */ new Set();
216276
+ for (const item of this.flagList) {
216277
+ if (flag !== item && !combinableFlags.has(item.name)) {
216278
+ exclusive.add(item.name);
216279
+ }
216280
+ }
216281
+ }
216282
+ if (exclusive !== void 0 && exclusive.size > 0) {
216283
+ this.combineElementsToFlag(elementMap, flag.name, [...exclusive], " | ");
216271
216284
  }
216272
216285
  }
216273
216286
  for (const remainingFlagName of Object.keys(this.flagMap)) {
@@ -216713,7 +216726,7 @@ var require_command = __commonJS({
216713
216726
  const cmd = this.command;
216714
216727
  let description;
216715
216728
  if (this.opts.hideCommandSummaryInDescription) {
216716
- description = (cmd.description || "").split(POSSIBLE_LINE_FEED).slice(1);
216729
+ description = [(cmd.description || "").split(POSSIBLE_LINE_FEED).at(-1) ?? ""];
216717
216730
  } else if (cmd.description) {
216718
216731
  const summary = cmd.summary ? `${cmd.summary}
216719
216732
  ` : null;
@@ -216785,9 +216798,20 @@ ${multilineCommands}`;
216785
216798
  if (noChar)
216786
216799
  left = left.replace(" ", "");
216787
216800
  let right = flag.summary || flag.description || "";
216801
+ const metadata = [];
216788
216802
  const canBeCached = !(this.opts.respectNoCacheDefault === true && flag.noCacheDefault === true);
216789
- if (flag.type === "option" && flag.default && canBeCached) {
216790
- right = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${flag.default}]`)} ${right}`;
216803
+ if (flag.type === "option") {
216804
+ if (flag.default && canBeCached) {
216805
+ metadata.push(`default: ${flag.default}`);
216806
+ }
216807
+ if (flag.env) {
216808
+ metadata.push(`env: ${flag.env}`);
216809
+ }
216810
+ } else if (flag.type === "boolean" && flag.env) {
216811
+ metadata.push(`env: ${flag.env}`);
216812
+ }
216813
+ if (metadata.length > 0) {
216814
+ right = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[${metadata.join(", ")}]`)} ${right}`;
216791
216815
  }
216792
216816
  if (flag.required)
216793
216817
  right = `${(0, theme_1.colorize)(this.config?.theme?.flagRequired, "(required)")} ${right}`;
@@ -222054,6 +222078,7 @@ var require_cache_command = __commonJS({
222054
222078
  aliases: flag.aliases,
222055
222079
  char: flag.char,
222056
222080
  charAliases: flag.charAliases,
222081
+ combinable: flag.combinable,
222057
222082
  dependsOn: flag.dependsOn,
222058
222083
  deprecateAliases: flag.deprecateAliases,
222059
222084
  deprecated: flag.deprecated,
@@ -224312,6 +224337,7 @@ var require_parse2 = __commonJS({
224312
224337
  throw new errors_1.FlagInvalidOptionError(flag, input);
224313
224338
  return input;
224314
224339
  };
224340
+ var NEGATION = "--no-";
224315
224341
  var Parser = class {
224316
224342
  input;
224317
224343
  argv;
@@ -224518,9 +224544,16 @@ See more help with --help`;
224518
224544
  const tokenLength = fws.tokens?.length;
224519
224545
  if (tokenLength) {
224520
224546
  if (fws.inputFlag.flag.type === "boolean" && (0, util_1.last)(fws.tokens)?.input) {
224547
+ const doesNotContainNegation = (i) => {
224548
+ const possibleNegations = [i.inputFlag.name, ...i.inputFlag.flag.aliases ?? []].map((n) => `${NEGATION}${n}`);
224549
+ const input = (0, util_1.last)(i.tokens)?.input;
224550
+ if (!input)
224551
+ return true;
224552
+ return !possibleNegations.includes(input);
224553
+ };
224521
224554
  return {
224522
224555
  ...fws,
224523
- valueFunction: async (i) => parseFlagOrThrowError((0, util_1.last)(i.tokens)?.input !== `--no-${i.inputFlag.name}`, i.inputFlag.flag, this.context, (0, util_1.last)(i.tokens))
224556
+ valueFunction: async (i) => parseFlagOrThrowError(doesNotContainNegation(i), i.inputFlag.flag, this.context, (0, util_1.last)(i.tokens))
224524
224557
  };
224525
224558
  }
224526
224559
  if (fws.inputFlag.flag.type === "option" && fws.inputFlag.flag.delimiter && fws.inputFlag.flag.multiple) {
@@ -224638,10 +224671,14 @@ See more help with --help`;
224638
224671
  if (this.flagAliases[name]) {
224639
224672
  return this.flagAliases[name].name;
224640
224673
  }
224641
- if (arg.startsWith("--no-")) {
224642
- const flag = this.booleanFlags[arg.slice(5)];
224674
+ if (arg.startsWith(NEGATION)) {
224675
+ const flag = this.booleanFlags[arg.slice(NEGATION.length)];
224643
224676
  if (flag && flag.allowNo)
224644
224677
  return flag.name;
224678
+ const flagAlias = this.flagAliases[arg.slice(NEGATION.length)];
224679
+ if (flagAlias && flagAlias.type === "boolean" && flagAlias.allowNo) {
224680
+ return flagAlias.name;
224681
+ }
224645
224682
  }
224646
224683
  }
224647
224684
  findShortFlag([_, char]) {
@@ -224723,6 +224760,7 @@ var require_validate = __commonJS({
224723
224760
  ...flag.relationships ? validateRelationships(name, flag) : [],
224724
224761
  ...flag.dependsOn ? [validateDependsOn(name, flag.dependsOn)] : [],
224725
224762
  ...flag.exclusive ? [validateExclusive(name, flag.exclusive)] : [],
224763
+ ...flag.combinable ? [validateCombinable(name, flag.combinable)] : [],
224726
224764
  ...flag.exactlyOne ? [validateExactlyOne(name, flag.exactlyOne)] : []
224727
224765
  ];
224728
224766
  }
@@ -224800,6 +224838,26 @@ var require_validate = __commonJS({
224800
224838
  }
224801
224839
  return { ...base, status: "success" };
224802
224840
  }
224841
+ async function validateCombinable(name, flags) {
224842
+ const base = { name, validationFn: "validateCombinable" };
224843
+ const combinableFlags = new Set(flags.map((flag) => typeof flag === "string" ? flag : flag.name));
224844
+ const resolved = await resolveFlags(flags);
224845
+ for (const flag of Object.keys(parse.output.flags)) {
224846
+ if (parse.output.metadata.flags && parse.output.metadata.flags[flag]?.setFromDefault)
224847
+ continue;
224848
+ if (parse.output.metadata.flags && parse.output.metadata.flags[name]?.setFromDefault)
224849
+ continue;
224850
+ if (flag !== name && parse.output.flags[flag] !== void 0 && !combinableFlags.has(flag)) {
224851
+ const formattedFlags = Object.keys(resolved).map((f) => `--${f}`).join(", ");
224852
+ return {
224853
+ ...base,
224854
+ reason: `Only the following can be provided when using --${name}: ${formattedFlags}`,
224855
+ status: "failed"
224856
+ };
224857
+ }
224858
+ }
224859
+ return { ...base, status: "success" };
224860
+ }
224803
224861
  async function validateExactlyOne(name, flags) {
224804
224862
  const base = { name, validationFn: "validateExactlyOne" };
224805
224863
  const resolved = await resolveFlags(flags);
@@ -224848,6 +224906,9 @@ var require_validate = __commonJS({
224848
224906
  case "none": {
224849
224907
  return validateExclusive(name, relationship.flags);
224850
224908
  }
224909
+ case "only": {
224910
+ return validateCombinable(name, relationship.flags);
224911
+ }
224851
224912
  case "some": {
224852
224913
  return validateSome(name, relationship.flags);
224853
224914
  }
@@ -225063,6 +225124,7 @@ var require_command2 = __commonJS({
225063
225124
  static usage;
225064
225125
  debug;
225065
225126
  id;
225127
+ parsed = false;
225066
225128
  constructor(argv, config) {
225067
225129
  this.argv = argv;
225068
225130
  this.config = config;
@@ -225118,6 +225180,11 @@ var require_command2 = __commonJS({
225118
225180
  }
225119
225181
  if (result && this.jsonEnabled())
225120
225182
  this.logJson(this.toSuccessJson(result));
225183
+ if (!this.parsed && !(0, util_2.isProd)()) {
225184
+ process.emitWarning(`Command ${this.id} did not parse its arguments. Did you forget to call 'this.parse'?`, {
225185
+ code: "UnparsedCommand"
225186
+ });
225187
+ }
225121
225188
  return result;
225122
225189
  }
225123
225190
  async catch(err) {
@@ -225197,6 +225264,7 @@ var require_command2 = __commonJS({
225197
225264
  this.argv = [...argvToParse];
225198
225265
  const results = await Parser.parse(argvToParse, opts);
225199
225266
  this.warnIfFlagDeprecated(results.flags ?? {});
225267
+ this.parsed = true;
225200
225268
  return results;
225201
225269
  }
225202
225270
  toErrorJson(err) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-AOQIRGV5.js";
3
+ } from "./chunk-BVHRPYVY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-AOQIRGV5.js";
3
+ } from "./chunk-BVHRPYVY.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-FDNCBODK.js";
4
- import "../chunk-AOQIRGV5.js";
3
+ } from "../chunk-RX66BZJV.js";
4
+ import "../chunk-BVHRPYVY.js";
5
5
  import "../chunk-DYLIKYE6.js";
6
6
  import "../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-TOKY4XJQ.js";
4
- import "../../chunk-AOQIRGV5.js";
3
+ } from "../../chunk-VJPA4B4T.js";
4
+ import "../../chunk-BVHRPYVY.js";
5
5
  import "../../chunk-DYLIKYE6.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-FW3GROEH.js";
4
- import "../../chunk-AOQIRGV5.js";
3
+ } from "../../chunk-A4HBA4BO.js";
4
+ import "../../chunk-BVHRPYVY.js";
5
5
  import "../../chunk-DYLIKYE6.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-WM7LUCIX.js";
4
- import "../../chunk-AOQIRGV5.js";
3
+ } from "../../chunk-BPADTXFW.js";
4
+ import "../../chunk-BVHRPYVY.js";
5
5
  import "../../chunk-DYLIKYE6.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-FDNCBODK.js";
3
+ } from "./chunk-RX66BZJV.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-TOKY4XJQ.js";
6
+ } from "./chunk-VJPA4B4T.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-FW3GROEH.js";
9
+ } from "./chunk-A4HBA4BO.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-WM7LUCIX.js";
12
+ } from "./chunk-BPADTXFW.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-AOQIRGV5.js";
17
+ } from "./chunk-BVHRPYVY.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -578,6 +578,7 @@ Does your current user own the directory ${this.config.dataDir}?`
578
578
  if (await fileExists(join2(c.root, "yarn.lock"))) {
579
579
  this.debug("installing dependencies with yarn");
580
580
  const yarn = new Yarn({ config: this.config, logLevel: this.logLevel });
581
+ import_core4.ux.warn(`The ${import_core4.ux.colorize("dim", "plugins link")} command will no longer auto install dependencies in future versions. Please run ${import_core4.ux.colorize("dim", "yarn")} manually in the plugin directory before linking.`);
581
582
  await yarn.install([], {
582
583
  cwd: c.root,
583
584
  logLevel: this.logLevel
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.105"
478
+ "version": "0.5.107"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.105",
3
+ "version": "0.5.107",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,8 +12,8 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-plugins": "^5.4.50",
16
- "@oclif/plugin-test-esm-1": "^0.8.93"
15
+ "@oclif/plugin-plugins": "^5.4.52",
16
+ "@oclif/plugin-test-esm-1": "^0.8.95"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@eslint/compat": "^1.4.0",
@@ -23,12 +23,12 @@
23
23
  "@types/mocha": "^10",
24
24
  "@types/node": "^18",
25
25
  "chai": "^4",
26
- "esbuild": "^0.25.10",
26
+ "esbuild": "^0.25.11",
27
27
  "eslint": "^9.38.0",
28
- "eslint-config-oclif": "^6.0.108",
28
+ "eslint-config-oclif": "^6.0.114",
29
29
  "eslint-config-prettier": "^10.1.8",
30
30
  "mocha": "^10",
31
- "oclif": "^4.22.29",
31
+ "oclif": "^4.22.32",
32
32
  "shx": "^0.4.0",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"