@oclif/plugin-test-esbuild 0.4.8 → 0.4.10

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.4.8 linux-x64 node-v20.11.1
20
+ @oclif/plugin-test-esbuild/0.4.10 linux-x64 node-v20.11.1
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -2,7 +2,7 @@ import {
2
2
  __toESM,
3
3
  init_cjs_shims,
4
4
  require_lib
5
- } from "./chunk-AK255COV.js";
5
+ } from "./chunk-FTHPHIQB.js";
6
6
 
7
7
  // src/commands/esbuild.ts
8
8
  init_cjs_shims();
@@ -1856,9 +1856,9 @@ var require_source = __commonJS({
1856
1856
  }
1857
1857
  });
1858
1858
 
1859
- // node_modules/escape-string-regexp/index.js
1859
+ // node_modules/clean-stack/node_modules/escape-string-regexp/index.js
1860
1860
  var require_escape_string_regexp = __commonJS({
1861
- "node_modules/escape-string-regexp/index.js"(exports, module) {
1861
+ "node_modules/clean-stack/node_modules/escape-string-regexp/index.js"(exports, module) {
1862
1862
  "use strict";
1863
1863
  init_cjs_shims();
1864
1864
  module.exports = (string) => {
@@ -2214,7 +2214,7 @@ var require_package = __commonJS({
2214
2214
  module.exports = {
2215
2215
  name: "@oclif/core",
2216
2216
  description: "base library for oclif CLIs",
2217
- version: "3.25.2",
2217
+ version: "3.26.0",
2218
2218
  author: "Salesforce",
2219
2219
  bugs: "https://github.com/oclif/core/issues",
2220
2220
  dependencies: {
@@ -2279,9 +2279,9 @@ var require_package = __commonJS({
2279
2279
  "cross-env": "^7.0.3",
2280
2280
  eslint: "^8.57.0",
2281
2281
  "eslint-config-oclif": "^5.1.0",
2282
- "eslint-config-oclif-typescript": "^3.1.0",
2282
+ "eslint-config-oclif-typescript": "^3.1.2",
2283
2283
  "eslint-config-prettier": "^9.1.0",
2284
- "fancy-test": "^3.0.12",
2284
+ "fancy-test": "^3.0.13",
2285
2285
  globby: "^11.1.0",
2286
2286
  husky: "^8",
2287
2287
  "lint-staged": "^14.0.1",
@@ -224223,9 +224223,9 @@ var require_brace_expansion = __commonJS({
224223
224223
  }
224224
224224
  });
224225
224225
 
224226
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/assert-valid-pattern.js
224226
+ // node_modules/minimatch/dist/cjs/assert-valid-pattern.js
224227
224227
  var require_assert_valid_pattern = __commonJS({
224228
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/assert-valid-pattern.js"(exports) {
224228
+ "node_modules/minimatch/dist/cjs/assert-valid-pattern.js"(exports) {
224229
224229
  "use strict";
224230
224230
  init_cjs_shims();
224231
224231
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -224243,9 +224243,9 @@ var require_assert_valid_pattern = __commonJS({
224243
224243
  }
224244
224244
  });
224245
224245
 
224246
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/brace-expressions.js
224246
+ // node_modules/minimatch/dist/cjs/brace-expressions.js
224247
224247
  var require_brace_expressions = __commonJS({
224248
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/brace-expressions.js"(exports) {
224248
+ "node_modules/minimatch/dist/cjs/brace-expressions.js"(exports) {
224249
224249
  "use strict";
224250
224250
  init_cjs_shims();
224251
224251
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -224362,9 +224362,9 @@ var require_brace_expressions = __commonJS({
224362
224362
  }
224363
224363
  });
224364
224364
 
224365
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/unescape.js
224365
+ // node_modules/minimatch/dist/cjs/unescape.js
224366
224366
  var require_unescape = __commonJS({
224367
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/unescape.js"(exports) {
224367
+ "node_modules/minimatch/dist/cjs/unescape.js"(exports) {
224368
224368
  "use strict";
224369
224369
  init_cjs_shims();
224370
224370
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -224376,9 +224376,9 @@ var require_unescape = __commonJS({
224376
224376
  }
224377
224377
  });
224378
224378
 
224379
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/ast.js
224379
+ // node_modules/minimatch/dist/cjs/ast.js
224380
224380
  var require_ast = __commonJS({
224381
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/ast.js"(exports) {
224381
+ "node_modules/minimatch/dist/cjs/ast.js"(exports) {
224382
224382
  "use strict";
224383
224383
  init_cjs_shims();
224384
224384
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -224863,9 +224863,9 @@ var require_ast = __commonJS({
224863
224863
  }
224864
224864
  });
224865
224865
 
224866
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/escape.js
224866
+ // node_modules/minimatch/dist/cjs/escape.js
224867
224867
  var require_escape2 = __commonJS({
224868
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/escape.js"(exports) {
224868
+ "node_modules/minimatch/dist/cjs/escape.js"(exports) {
224869
224869
  "use strict";
224870
224870
  init_cjs_shims();
224871
224871
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -224877,9 +224877,9 @@ var require_escape2 = __commonJS({
224877
224877
  }
224878
224878
  });
224879
224879
 
224880
- // node_modules/@oclif/core/node_modules/minimatch/dist/cjs/index.js
224880
+ // node_modules/minimatch/dist/cjs/index.js
224881
224881
  var require_cjs = __commonJS({
224882
- "node_modules/@oclif/core/node_modules/minimatch/dist/cjs/index.js"(exports) {
224882
+ "node_modules/minimatch/dist/cjs/index.js"(exports) {
224883
224883
  "use strict";
224884
224884
  init_cjs_shims();
224885
224885
  var __importDefault = exports && exports.__importDefault || function(mod) {
@@ -227175,9 +227175,9 @@ var require_braces = __commonJS({
227175
227175
  }
227176
227176
  });
227177
227177
 
227178
- // node_modules/fast-glob/node_modules/picomatch/lib/constants.js
227178
+ // node_modules/micromatch/node_modules/picomatch/lib/constants.js
227179
227179
  var require_constants2 = __commonJS({
227180
- "node_modules/fast-glob/node_modules/picomatch/lib/constants.js"(exports, module) {
227180
+ "node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports, module) {
227181
227181
  "use strict";
227182
227182
  init_cjs_shims();
227183
227183
  var path2 = __require("path");
@@ -227373,9 +227373,9 @@ var require_constants2 = __commonJS({
227373
227373
  }
227374
227374
  });
227375
227375
 
227376
- // node_modules/fast-glob/node_modules/picomatch/lib/utils.js
227376
+ // node_modules/micromatch/node_modules/picomatch/lib/utils.js
227377
227377
  var require_utils3 = __commonJS({
227378
- "node_modules/fast-glob/node_modules/picomatch/lib/utils.js"(exports) {
227378
+ "node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports) {
227379
227379
  "use strict";
227380
227380
  init_cjs_shims();
227381
227381
  var path2 = __require("path");
@@ -227437,9 +227437,9 @@ var require_utils3 = __commonJS({
227437
227437
  }
227438
227438
  });
227439
227439
 
227440
- // node_modules/fast-glob/node_modules/picomatch/lib/scan.js
227440
+ // node_modules/micromatch/node_modules/picomatch/lib/scan.js
227441
227441
  var require_scan = __commonJS({
227442
- "node_modules/fast-glob/node_modules/picomatch/lib/scan.js"(exports, module) {
227442
+ "node_modules/micromatch/node_modules/picomatch/lib/scan.js"(exports, module) {
227443
227443
  "use strict";
227444
227444
  init_cjs_shims();
227445
227445
  var utils = require_utils3();
@@ -227771,9 +227771,9 @@ var require_scan = __commonJS({
227771
227771
  }
227772
227772
  });
227773
227773
 
227774
- // node_modules/fast-glob/node_modules/picomatch/lib/parse.js
227774
+ // node_modules/micromatch/node_modules/picomatch/lib/parse.js
227775
227775
  var require_parse3 = __commonJS({
227776
- "node_modules/fast-glob/node_modules/picomatch/lib/parse.js"(exports, module) {
227776
+ "node_modules/micromatch/node_modules/picomatch/lib/parse.js"(exports, module) {
227777
227777
  "use strict";
227778
227778
  init_cjs_shims();
227779
227779
  var constants = require_constants2();
@@ -228553,9 +228553,9 @@ var require_parse3 = __commonJS({
228553
228553
  }
228554
228554
  });
228555
228555
 
228556
- // node_modules/fast-glob/node_modules/picomatch/lib/picomatch.js
228556
+ // node_modules/micromatch/node_modules/picomatch/lib/picomatch.js
228557
228557
  var require_picomatch = __commonJS({
228558
- "node_modules/fast-glob/node_modules/picomatch/lib/picomatch.js"(exports, module) {
228558
+ "node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports, module) {
228559
228559
  "use strict";
228560
228560
  init_cjs_shims();
228561
228561
  var path2 = __require("path");
@@ -228698,18 +228698,18 @@ var require_picomatch = __commonJS({
228698
228698
  }
228699
228699
  });
228700
228700
 
228701
- // node_modules/fast-glob/node_modules/picomatch/index.js
228701
+ // node_modules/micromatch/node_modules/picomatch/index.js
228702
228702
  var require_picomatch2 = __commonJS({
228703
- "node_modules/fast-glob/node_modules/picomatch/index.js"(exports, module) {
228703
+ "node_modules/micromatch/node_modules/picomatch/index.js"(exports, module) {
228704
228704
  "use strict";
228705
228705
  init_cjs_shims();
228706
228706
  module.exports = require_picomatch();
228707
228707
  }
228708
228708
  });
228709
228709
 
228710
- // node_modules/fast-glob/node_modules/micromatch/index.js
228710
+ // node_modules/micromatch/index.js
228711
228711
  var require_micromatch = __commonJS({
228712
- "node_modules/fast-glob/node_modules/micromatch/index.js"(exports, module) {
228712
+ "node_modules/micromatch/index.js"(exports, module) {
228713
228713
  "use strict";
228714
228714
  init_cjs_shims();
228715
228715
  var util = __require("util");
@@ -232872,6 +232872,7 @@ var require_config3 = __commonJS({
232872
232872
  var debug = (0, util_3.Debug)();
232873
232873
  var _pjson = cache_1.default.getInstance().get("@oclif/core");
232874
232874
  var BASE = `${_pjson.name}@${_pjson.version}`;
232875
+ var ROOT_ONLY_HOOKS = /* @__PURE__ */ new Set(["preparse"]);
232875
232876
  function channelFromVersion(version) {
232876
232877
  const m = version.match(/[^-]+(?:-([^.]+))?/);
232877
232878
  return m && m[1] || "stable";
@@ -233256,7 +233257,8 @@ var require_config3 = __commonJS({
233256
233257
  failures: [],
233257
233258
  successes: []
233258
233259
  };
233259
- const promises = [...this.plugins.values()].map(async (p) => {
233260
+ const plugins = ROOT_ONLY_HOOKS.has(event) ? [this.rootPlugin] : [...this.plugins.values()];
233261
+ const promises = plugins.map(async (p) => {
233260
233262
  const debug2 = require_src()([this.bin, p.name, "hooks", event].join(":"));
233261
233263
  const context = {
233262
233264
  config: this,
@@ -233740,7 +233742,10 @@ ${list}`;
233740
233742
  let message = `Missing ${args.length} required arg${args.length === 1 ? "" : "s"}`;
233741
233743
  const namedArgs = args.filter((a) => a.name);
233742
233744
  if (namedArgs.length > 0) {
233743
- const list = (0, list_1.renderList)(namedArgs.map((a) => [a.name, a.description]));
233745
+ const list = (0, list_1.renderList)(namedArgs.map((a) => {
233746
+ const description = a.options ? `(${a.options.join("|")}) ${a.description}` : a.description;
233747
+ return [a.name, description];
233748
+ }));
233744
233749
  message += `:
233745
233750
  ${list}`;
233746
233751
  }
@@ -233921,6 +233926,9 @@ var require_parse4 = __commonJS({
233921
233926
  }
233922
233927
  }
233923
233928
  if (typeof input !== "string" || this.findFlag(input).name) {
233929
+ if (flag.options) {
233930
+ throw new errors_1.CLIError(`Flag --${name} expects one of these values: ${flag.options.join(", ")}`);
233931
+ }
233924
233932
  throw new errors_1.CLIError(`Flag --${name} expects a value`);
233925
233933
  }
233926
233934
  this.raw.push({ flag: flag.name, input, type: "flag" });
@@ -234720,7 +234728,10 @@ var require_command2 = __commonJS({
234720
234728
  ...options,
234721
234729
  flags: (0, aggregate_flags_1.aggregateFlags)(options.flags, options.baseFlags, options.enableJsonFlag)
234722
234730
  };
234723
- const results = await Parser.parse(argv, opts);
234731
+ const hookResult = await this.config.runHook("preparse", { argv: [...argv], options: opts });
234732
+ const argvToParse = hookResult.successes?.length ? hookResult.successes.find((s) => s.plugin.root === cache_1.default.getInstance().get("rootPlugin")?.root)?.result ?? argv : argv;
234733
+ this.argv = [...argvToParse];
234734
+ const results = await Parser.parse(argvToParse, opts);
234724
234735
  this.warnIfFlagDeprecated(results.flags ?? {});
234725
234736
  return results;
234726
234737
  }
@@ -2,7 +2,7 @@ import {
2
2
  __toESM,
3
3
  init_cjs_shims,
4
4
  require_lib
5
- } from "./chunk-AK255COV.js";
5
+ } from "./chunk-FTHPHIQB.js";
6
6
 
7
7
  // src/commands/hello/index.ts
8
8
  init_cjs_shims();
@@ -2,7 +2,7 @@ import {
2
2
  __toESM,
3
3
  init_cjs_shims,
4
4
  require_lib
5
- } from "./chunk-AK255COV.js";
5
+ } from "./chunk-FTHPHIQB.js";
6
6
 
7
7
  // src/hooks/init/init.ts
8
8
  init_cjs_shims();
@@ -2,7 +2,7 @@ import {
2
2
  __toESM,
3
3
  init_cjs_shims,
4
4
  require_lib
5
- } from "./chunk-AK255COV.js";
5
+ } from "./chunk-FTHPHIQB.js";
6
6
 
7
7
  // src/commands/hello/world.ts
8
8
  init_cjs_shims();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-Q6AVIZEA.js";
4
- import "../chunk-AK255COV.js";
3
+ } from "../chunk-7HKWIDN6.js";
4
+ import "../chunk-FTHPHIQB.js";
5
5
  export {
6
6
  ESBuild as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-DXF7DQ4F.js";
4
- import "../../chunk-AK255COV.js";
3
+ } from "../../chunk-M64ODMIA.js";
4
+ import "../../chunk-FTHPHIQB.js";
5
5
  export {
6
6
  Hello as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-QNGWVDJZ.js";
4
- import "../../chunk-AK255COV.js";
3
+ } from "../../chunk-SM63OOGH.js";
4
+ import "../../chunk-FTHPHIQB.js";
5
5
  export {
6
6
  World as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-FHXSALYA.js";
4
- import "../../chunk-AK255COV.js";
3
+ } from "../../chunk-MPK5X7DC.js";
4
+ import "../../chunk-FTHPHIQB.js";
5
5
  export {
6
6
  init_default as default
7
7
  };
package/dist/index.js CHANGED
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-Q6AVIZEA.js";
3
+ } from "./chunk-7HKWIDN6.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-DXF7DQ4F.js";
6
+ } from "./chunk-M64ODMIA.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-QNGWVDJZ.js";
9
+ } from "./chunk-SM63OOGH.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-FHXSALYA.js";
12
+ } from "./chunk-MPK5X7DC.js";
13
13
  import {
14
14
  __commonJS,
15
15
  __toESM,
16
16
  init_cjs_shims,
17
17
  require_lib,
18
18
  require_src
19
- } from "./chunk-AK255COV.js";
19
+ } from "./chunk-FTHPHIQB.js";
20
20
 
21
21
  // node_modules/semver/internal/constants.js
22
22
  var require_constants = __commonJS({
@@ -1195,9 +1195,9 @@ var require_yallist = __commonJS({
1195
1195
  }
1196
1196
  });
1197
1197
 
1198
- // node_modules/lru-cache/index.js
1198
+ // node_modules/semver/node_modules/lru-cache/index.js
1199
1199
  var require_lru_cache = __commonJS({
1200
- "node_modules/lru-cache/index.js"(exports, module) {
1200
+ "node_modules/semver/node_modules/lru-cache/index.js"(exports, module) {
1201
1201
  "use strict";
1202
1202
  init_cjs_shims();
1203
1203
  var Yallist = require_yallist();
@@ -467,5 +467,5 @@
467
467
  "enableJsonFlag": false
468
468
  }
469
469
  },
470
- "version": "0.4.8"
470
+ "version": "0.4.10"
471
471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.4.8",
3
+ "version": "0.4.10",
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": "^3.25.2",
15
- "@oclif/plugin-test-esm-1": "^0.7.6",
16
- "@oclif/plugin-plugins": "^4.3.8"
15
+ "@oclif/plugin-test-esm-1": "^0.7.8",
16
+ "@oclif/plugin-plugins": "^4.3.10"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@oclif/prettier-config": "^0.2.1",
@@ -28,7 +28,7 @@
28
28
  "eslint-config-oclif-typescript": "^3",
29
29
  "eslint-config-prettier": "^9.1.0",
30
30
  "mocha": "^10",
31
- "oclif": "^4.5.2",
31
+ "oclif": "^4.7.1",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"