@oclif/plugin-test-esbuild 0.5.42 → 0.5.44

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.42 linux-x64 node-v20.18.0
20
+ @oclif/plugin-test-esbuild/0.5.44 linux-x64 node-v20.18.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-GBPD7WOS.js";
3
+ } from "./chunk-IQMVKB37.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-SFFL7AYM.js";
7
+ } from "./chunk-RRP6KXWN.js";
8
8
 
9
9
  // src/commands/hello/index.ts
10
10
  init_cjs_shims();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-4OALFURW.js";
3
+ } from "./chunk-NAYBUSHR.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __require,
7
7
  init_cjs_shims
8
- } from "./chunk-SFFL7AYM.js";
8
+ } from "./chunk-RRP6KXWN.js";
9
9
 
10
10
  // node_modules/@oclif/core/lib/util/util.js
11
11
  var require_util = __commonJS({
@@ -1024,6 +1024,69 @@ var require_ejs = __commonJS({
1024
1024
  }
1025
1025
  });
1026
1026
 
1027
+ // node_modules/is-docker/index.js
1028
+ var require_is_docker = __commonJS({
1029
+ "node_modules/is-docker/index.js"(exports, module) {
1030
+ "use strict";
1031
+ init_cjs_shims();
1032
+ var fs = __require("fs");
1033
+ var isDocker;
1034
+ function hasDockerEnv() {
1035
+ try {
1036
+ fs.statSync("/.dockerenv");
1037
+ return true;
1038
+ } catch (_) {
1039
+ return false;
1040
+ }
1041
+ }
1042
+ function hasDockerCGroup() {
1043
+ try {
1044
+ return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
1045
+ } catch (_) {
1046
+ return false;
1047
+ }
1048
+ }
1049
+ module.exports = () => {
1050
+ if (isDocker === void 0) {
1051
+ isDocker = hasDockerEnv() || hasDockerCGroup();
1052
+ }
1053
+ return isDocker;
1054
+ };
1055
+ }
1056
+ });
1057
+
1058
+ // node_modules/is-wsl/index.js
1059
+ var require_is_wsl = __commonJS({
1060
+ "node_modules/is-wsl/index.js"(exports, module) {
1061
+ "use strict";
1062
+ init_cjs_shims();
1063
+ var os = __require("os");
1064
+ var fs = __require("fs");
1065
+ var isDocker = require_is_docker();
1066
+ var isWsl = () => {
1067
+ if (process.platform !== "linux") {
1068
+ return false;
1069
+ }
1070
+ if (os.release().toLowerCase().includes("microsoft")) {
1071
+ if (isDocker()) {
1072
+ return false;
1073
+ }
1074
+ return true;
1075
+ }
1076
+ try {
1077
+ return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
1078
+ } catch (_) {
1079
+ return false;
1080
+ }
1081
+ };
1082
+ if (process.env.__IS_WSL_TEST__) {
1083
+ module.exports = isWsl;
1084
+ } else {
1085
+ module.exports = isWsl();
1086
+ }
1087
+ }
1088
+ });
1089
+
1027
1090
  // node_modules/ms/index.js
1028
1091
  var require_ms = __commonJS({
1029
1092
  "node_modules/ms/index.js"(exports, module) {
@@ -224170,6 +224233,7 @@ var require_config = __commonJS({
224170
224233
  Object.defineProperty(exports, "__esModule", { value: true });
224171
224234
  exports.Config = void 0;
224172
224235
  var ejs = __importStar(require_ejs());
224236
+ var is_wsl_1 = __importDefault(require_is_wsl());
224173
224237
  var node_os_1 = __require("node:os");
224174
224238
  var node_path_1 = __require("node:path");
224175
224239
  var node_url_1 = __require("node:url");
@@ -224182,6 +224246,7 @@ var require_config = __commonJS({
224182
224246
  var settings_1 = require_settings();
224183
224247
  var determine_priority_1 = require_determine_priority();
224184
224248
  var fs_1 = require_fs();
224249
+ var ids_1 = require_ids();
224185
224250
  var os_1 = require_os();
224186
224251
  var util_2 = require_util();
224187
224252
  var ux_1 = require_ux();
@@ -224414,8 +224479,7 @@ var require_config = __commonJS({
224414
224479
  this.channel = this.options.channel || channelFromVersion(this.version);
224415
224480
  this.valid = this.rootPlugin.valid;
224416
224481
  this.arch = (0, node_os_1.arch)() === "ia32" ? "x86" : (0, node_os_1.arch)();
224417
- const { default: isWSL } = await import("./is-wsl-VRYIKEOD.js");
224418
- this.platform = isWSL ? "wsl" : (0, os_1.getPlatform)();
224482
+ this.platform = is_wsl_1.default ? "wsl" : (0, os_1.getPlatform)();
224419
224483
  this.windows = this.platform === "win32";
224420
224484
  this.bin = this.pjson.oclif.bin || this.name;
224421
224485
  this.binAliases = this.pjson.oclif.binAliases;
@@ -224773,16 +224837,20 @@ var require_config = __commonJS({
224773
224837
  this.commandPermutations.add(permutation, command.id);
224774
224838
  }
224775
224839
  const handleAlias = (alias, hidden = false) => {
224776
- if (this._commands.has(alias)) {
224840
+ const aliasWithDefaultTopicSeparator = (0, ids_1.toStandardizedId)(alias, this);
224841
+ if (this._commands.has(aliasWithDefaultTopicSeparator)) {
224777
224842
  const prioritizedCommand = (0, determine_priority_1.determinePriority)(this.pjson.oclif.plugins ?? [], [
224778
- this._commands.get(alias),
224843
+ this._commands.get(aliasWithDefaultTopicSeparator),
224779
224844
  command
224780
224845
  ]);
224781
- this._commands.set(alias, { ...prioritizedCommand, id: alias });
224846
+ this._commands.set(aliasWithDefaultTopicSeparator, {
224847
+ ...prioritizedCommand,
224848
+ id: aliasWithDefaultTopicSeparator
224849
+ });
224782
224850
  } else {
224783
- this._commands.set(alias, { ...command, hidden, id: alias });
224851
+ this._commands.set(aliasWithDefaultTopicSeparator, { ...command, hidden, id: aliasWithDefaultTopicSeparator });
224784
224852
  }
224785
- const aliasPermutations = this.flexibleTaxonomy && command.aliasPermutations === void 0 ? (0, util_3.getCommandIdPermutations)(alias) : command.permutations ?? [alias];
224853
+ const aliasPermutations = this.flexibleTaxonomy && command.aliasPermutations === void 0 ? (0, util_3.getCommandIdPermutations)(aliasWithDefaultTopicSeparator) : command.permutations ?? [aliasWithDefaultTopicSeparator];
224786
224854
  for (const permutation of aliasPermutations) {
224787
224855
  this.commandPermutations.add(permutation, command.id);
224788
224856
  }
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-GBPD7WOS.js";
3
+ } from "./chunk-IQMVKB37.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-SFFL7AYM.js";
7
+ } from "./chunk-RRP6KXWN.js";
8
8
 
9
9
  // src/commands/esbuild.ts
10
10
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-GBPD7WOS.js";
3
+ } from "./chunk-IQMVKB37.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-SFFL7AYM.js";
7
+ } from "./chunk-RRP6KXWN.js";
8
8
 
9
9
  // src/commands/hello/world.ts
10
10
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-GBPD7WOS.js";
3
+ } from "./chunk-IQMVKB37.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-SFFL7AYM.js";
7
+ } from "./chunk-RRP6KXWN.js";
8
8
 
9
9
  // src/hooks/init/init.ts
10
10
  init_cjs_shims();
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __commonJS,
3
3
  init_cjs_shims
4
- } from "./chunk-SFFL7AYM.js";
4
+ } from "./chunk-RRP6KXWN.js";
5
5
 
6
6
  // node_modules/semver/internal/constants.js
7
7
  var require_constants = __commonJS({
@@ -48,7 +48,6 @@ var init_cjs_shims = __esm({
48
48
 
49
49
  export {
50
50
  __require,
51
- __esm,
52
51
  __commonJS,
53
52
  __toESM,
54
53
  init_cjs_shims
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-SFFL7AYM.js";
5
+ } from "./chunk-RRP6KXWN.js";
6
6
 
7
7
  // node_modules/validate-npm-package-name/lib/index.js
8
8
  var require_lib = __commonJS({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-6NV2LFZW.js";
4
- import "../chunk-GBPD7WOS.js";
5
- import "../chunk-4OALFURW.js";
6
- import "../chunk-SFFL7AYM.js";
3
+ } from "../chunk-KY623K2C.js";
4
+ import "../chunk-IQMVKB37.js";
5
+ import "../chunk-NAYBUSHR.js";
6
+ import "../chunk-RRP6KXWN.js";
7
7
  export {
8
8
  ESBuild as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-66ONFVO5.js";
4
- import "../../chunk-GBPD7WOS.js";
5
- import "../../chunk-4OALFURW.js";
6
- import "../../chunk-SFFL7AYM.js";
3
+ } from "../../chunk-A4ZYY77F.js";
4
+ import "../../chunk-IQMVKB37.js";
5
+ import "../../chunk-NAYBUSHR.js";
6
+ import "../../chunk-RRP6KXWN.js";
7
7
  export {
8
8
  Hello as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-2XRVOJ4F.js";
4
- import "../../chunk-GBPD7WOS.js";
5
- import "../../chunk-4OALFURW.js";
6
- import "../../chunk-SFFL7AYM.js";
3
+ } from "../../chunk-LZIJWEAG.js";
4
+ import "../../chunk-IQMVKB37.js";
5
+ import "../../chunk-NAYBUSHR.js";
6
+ import "../../chunk-RRP6KXWN.js";
7
7
  export {
8
8
  World as default
9
9
  };
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-KXFJAE4U.js";
4
- import "../../chunk-GBPD7WOS.js";
5
- import "../../chunk-4OALFURW.js";
6
- import "../../chunk-SFFL7AYM.js";
3
+ } from "../../chunk-N3BYUFZP.js";
4
+ import "../../chunk-IQMVKB37.js";
5
+ import "../../chunk-NAYBUSHR.js";
6
+ import "../../chunk-RRP6KXWN.js";
7
7
  export {
8
8
  init_default as default
9
9
  };
package/dist/index.js CHANGED
@@ -1,30 +1,30 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-6NV2LFZW.js";
3
+ } from "./chunk-KY623K2C.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-66ONFVO5.js";
6
+ } from "./chunk-A4ZYY77F.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-2XRVOJ4F.js";
9
+ } from "./chunk-LZIJWEAG.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-KXFJAE4U.js";
12
+ } from "./chunk-N3BYUFZP.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-GBPD7WOS.js";
17
+ } from "./chunk-IQMVKB37.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
- } from "./chunk-65VALZLM.js";
20
+ } from "./chunk-SO2G2ODZ.js";
21
21
  import {
22
22
  require_semver
23
- } from "./chunk-4OALFURW.js";
23
+ } from "./chunk-NAYBUSHR.js";
24
24
  import {
25
25
  __toESM,
26
26
  init_cjs_shims
27
- } from "./chunk-SFFL7AYM.js";
27
+ } from "./chunk-RRP6KXWN.js";
28
28
 
29
29
  // src/index.ts
30
30
  init_cjs_shims();
@@ -322,7 +322,7 @@ var NPM = class {
322
322
  const npmPath = npmPjsonPath.slice(0, Math.max(0, npmPjsonPath.lastIndexOf(sep)));
323
323
  this.bin = join(npmPath, npmPjson.bin.npm);
324
324
  } catch {
325
- const { default: which } = await import("./lib-KOFW4VXJ.js");
325
+ const { default: which } = await import("./lib-GHTB6ZPQ.js");
326
326
  this.bin = await which("npm");
327
327
  }
328
328
  if (!this.bin) {
@@ -403,7 +403,7 @@ var Yarn = class {
403
403
  try {
404
404
  this.bin = require2.resolve("yarn/bin/yarn.js", { paths: [this.config.root, fileURLToPath2(import.meta.url)] });
405
405
  } catch {
406
- const { default: which } = await import("./lib-KOFW4VXJ.js");
406
+ const { default: which } = await import("./lib-GHTB6ZPQ.js");
407
407
  this.bin = await which("yarn");
408
408
  }
409
409
  if (!this.bin) {
@@ -502,7 +502,7 @@ var Plugins = class {
502
502
  const url = name;
503
503
  const output = await this.npm.install([...args, url], options);
504
504
  const { dependencies } = await this.pjson();
505
- const { default: npa } = await import("./npa-E5UVGQ7I.js");
505
+ const { default: npa } = await import("./npa-G53ZOHUR.js");
506
506
  const normalizedUrl = npa(url);
507
507
  const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
508
508
  const normalized = npa(u);
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-SFFL7AYM.js";
5
+ } from "./chunk-RRP6KXWN.js";
6
6
 
7
7
  // node_modules/isexe/dist/cjs/posix.js
8
8
  var require_posix = __commonJS({
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-65VALZLM.js";
3
+ } from "./chunk-SO2G2ODZ.js";
4
4
  import {
5
5
  require_semver
6
- } from "./chunk-4OALFURW.js";
6
+ } from "./chunk-NAYBUSHR.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
10
10
  init_cjs_shims
11
- } from "./chunk-SFFL7AYM.js";
11
+ } from "./chunk-RRP6KXWN.js";
12
12
 
13
13
  // node_modules/lru-cache/dist/commonjs/index.js
14
14
  var require_commonjs = __commonJS({
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.42"
478
+ "version": "0.5.44"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.42",
3
+ "version": "0.5.44",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-test-esm-1": "^0.8.39",
15
+ "@oclif/plugin-test-esm-1": "^0.8.40",
16
16
  "@oclif/plugin-plugins": "^5.4.15"
17
17
  },
18
18
  "devDependencies": {
@@ -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.15.9",
31
+ "oclif": "^4.15.12",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"
@@ -1,91 +0,0 @@
1
- import {
2
- __esm,
3
- init_cjs_shims
4
- } from "./chunk-SFFL7AYM.js";
5
-
6
- // node_modules/is-docker/index.js
7
- import fs from "node:fs";
8
- function hasDockerEnv() {
9
- try {
10
- fs.statSync("/.dockerenv");
11
- return true;
12
- } catch {
13
- return false;
14
- }
15
- }
16
- function hasDockerCGroup() {
17
- try {
18
- return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
19
- } catch {
20
- return false;
21
- }
22
- }
23
- function isDocker() {
24
- if (isDockerCached === void 0) {
25
- isDockerCached = hasDockerEnv() || hasDockerCGroup();
26
- }
27
- return isDockerCached;
28
- }
29
- var isDockerCached;
30
- var init_is_docker = __esm({
31
- "node_modules/is-docker/index.js"() {
32
- init_cjs_shims();
33
- }
34
- });
35
-
36
- // node_modules/is-inside-container/index.js
37
- import fs2 from "node:fs";
38
- function isInsideContainer() {
39
- if (cachedResult === void 0) {
40
- cachedResult = hasContainerEnv() || isDocker();
41
- }
42
- return cachedResult;
43
- }
44
- var cachedResult, hasContainerEnv;
45
- var init_is_inside_container = __esm({
46
- "node_modules/is-inside-container/index.js"() {
47
- init_cjs_shims();
48
- init_is_docker();
49
- hasContainerEnv = () => {
50
- try {
51
- fs2.statSync("/run/.containerenv");
52
- return true;
53
- } catch {
54
- return false;
55
- }
56
- };
57
- }
58
- });
59
-
60
- // node_modules/is-wsl/index.js
61
- import process from "node:process";
62
- import os from "node:os";
63
- import fs3 from "node:fs";
64
- var isWsl, is_wsl_default;
65
- var init_is_wsl = __esm({
66
- "node_modules/is-wsl/index.js"() {
67
- init_cjs_shims();
68
- init_is_inside_container();
69
- isWsl = () => {
70
- if (process.platform !== "linux") {
71
- return false;
72
- }
73
- if (os.release().toLowerCase().includes("microsoft")) {
74
- if (isInsideContainer()) {
75
- return false;
76
- }
77
- return true;
78
- }
79
- try {
80
- return fs3.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isInsideContainer() : false;
81
- } catch {
82
- return false;
83
- }
84
- };
85
- is_wsl_default = process.env.__IS_WSL_TEST__ ? isWsl : isWsl();
86
- }
87
- });
88
- init_is_wsl();
89
- export {
90
- is_wsl_default as default
91
- };