@oclif/plugin-test-esbuild 0.5.34 → 0.5.36

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.34 linux-x64 node-v20.17.0
20
+ @oclif/plugin-test-esbuild/0.5.36 linux-x64 node-v20.17.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  __commonJS,
3
- __require,
4
3
  init_cjs_shims
5
- } from "./chunk-RRP6KXWN.js";
4
+ } from "./chunk-SFFL7AYM.js";
6
5
 
7
6
  // node_modules/semver/internal/constants.js
8
7
  var require_constants = __commonJS({
@@ -1897,94 +1896,6 @@ var require_semver2 = __commonJS({
1897
1896
  }
1898
1897
  });
1899
1898
 
1900
- // node_modules/validate-npm-package-name/lib/index.js
1901
- var require_lib = __commonJS({
1902
- "node_modules/validate-npm-package-name/lib/index.js"(exports, module) {
1903
- "use strict";
1904
- init_cjs_shims();
1905
- var { builtinModules: builtins } = __require("module");
1906
- var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
1907
- var blacklist = [
1908
- "node_modules",
1909
- "favicon.ico"
1910
- ];
1911
- function validate(name) {
1912
- var warnings = [];
1913
- var errors = [];
1914
- if (name === null) {
1915
- errors.push("name cannot be null");
1916
- return done(warnings, errors);
1917
- }
1918
- if (name === void 0) {
1919
- errors.push("name cannot be undefined");
1920
- return done(warnings, errors);
1921
- }
1922
- if (typeof name !== "string") {
1923
- errors.push("name must be a string");
1924
- return done(warnings, errors);
1925
- }
1926
- if (!name.length) {
1927
- errors.push("name length must be greater than zero");
1928
- }
1929
- if (name.match(/^\./)) {
1930
- errors.push("name cannot start with a period");
1931
- }
1932
- if (name.match(/^_/)) {
1933
- errors.push("name cannot start with an underscore");
1934
- }
1935
- if (name.trim() !== name) {
1936
- errors.push("name cannot contain leading or trailing spaces");
1937
- }
1938
- blacklist.forEach(function(blacklistedName) {
1939
- if (name.toLowerCase() === blacklistedName) {
1940
- errors.push(blacklistedName + " is a blacklisted name");
1941
- }
1942
- });
1943
- if (builtins.includes(name.toLowerCase())) {
1944
- warnings.push(name + " is a core module name");
1945
- }
1946
- if (name.length > 214) {
1947
- warnings.push("name can no longer contain more than 214 characters");
1948
- }
1949
- if (name.toLowerCase() !== name) {
1950
- warnings.push("name can no longer contain capital letters");
1951
- }
1952
- if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
1953
- warnings.push(`name can no longer contain special characters ("~'!()*")`);
1954
- }
1955
- if (encodeURIComponent(name) !== name) {
1956
- var nameMatch = name.match(scopedPackagePattern);
1957
- if (nameMatch) {
1958
- var user = nameMatch[1];
1959
- var pkg = nameMatch[2];
1960
- if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
1961
- return done(warnings, errors);
1962
- }
1963
- }
1964
- errors.push("name can only contain URL-friendly characters");
1965
- }
1966
- return done(warnings, errors);
1967
- }
1968
- var done = function(warnings, errors) {
1969
- var result = {
1970
- validForNewPackages: errors.length === 0 && warnings.length === 0,
1971
- validForOldPackages: errors.length === 0,
1972
- warnings,
1973
- errors
1974
- };
1975
- if (!result.warnings.length) {
1976
- delete result.warnings;
1977
- }
1978
- if (!result.errors.length) {
1979
- delete result.errors;
1980
- }
1981
- return result;
1982
- };
1983
- module.exports = validate;
1984
- }
1985
- });
1986
-
1987
1899
  export {
1988
- require_semver2 as require_semver,
1989
- require_lib
1900
+ require_semver2 as require_semver
1990
1901
  };
@@ -1,8 +1,11 @@
1
+ import {
2
+ require_semver
3
+ } from "./chunk-4OALFURW.js";
1
4
  import {
2
5
  __commonJS,
3
6
  __require,
4
7
  init_cjs_shims
5
- } from "./chunk-RRP6KXWN.js";
8
+ } from "./chunk-SFFL7AYM.js";
6
9
 
7
10
  // node_modules/@oclif/core/lib/util/util.js
8
11
  var require_util = __commonJS({
@@ -1021,69 +1024,6 @@ var require_ejs = __commonJS({
1021
1024
  }
1022
1025
  });
1023
1026
 
1024
- // node_modules/is-docker/index.js
1025
- var require_is_docker = __commonJS({
1026
- "node_modules/is-docker/index.js"(exports, module) {
1027
- "use strict";
1028
- init_cjs_shims();
1029
- var fs = __require("fs");
1030
- var isDocker;
1031
- function hasDockerEnv() {
1032
- try {
1033
- fs.statSync("/.dockerenv");
1034
- return true;
1035
- } catch (_) {
1036
- return false;
1037
- }
1038
- }
1039
- function hasDockerCGroup() {
1040
- try {
1041
- return fs.readFileSync("/proc/self/cgroup", "utf8").includes("docker");
1042
- } catch (_) {
1043
- return false;
1044
- }
1045
- }
1046
- module.exports = () => {
1047
- if (isDocker === void 0) {
1048
- isDocker = hasDockerEnv() || hasDockerCGroup();
1049
- }
1050
- return isDocker;
1051
- };
1052
- }
1053
- });
1054
-
1055
- // node_modules/is-wsl/index.js
1056
- var require_is_wsl = __commonJS({
1057
- "node_modules/is-wsl/index.js"(exports, module) {
1058
- "use strict";
1059
- init_cjs_shims();
1060
- var os = __require("os");
1061
- var fs = __require("fs");
1062
- var isDocker = require_is_docker();
1063
- var isWsl = () => {
1064
- if (process.platform !== "linux") {
1065
- return false;
1066
- }
1067
- if (os.release().toLowerCase().includes("microsoft")) {
1068
- if (isDocker()) {
1069
- return false;
1070
- }
1071
- return true;
1072
- }
1073
- try {
1074
- return fs.readFileSync("/proc/version", "utf8").toLowerCase().includes("microsoft") ? !isDocker() : false;
1075
- } catch (_) {
1076
- return false;
1077
- }
1078
- };
1079
- if (process.env.__IS_WSL_TEST__) {
1080
- module.exports = isWsl;
1081
- } else {
1082
- module.exports = isWsl();
1083
- }
1084
- }
1085
- });
1086
-
1087
1027
  // node_modules/ms/index.js
1088
1028
  var require_ms = __commonJS({
1089
1029
  "node_modules/ms/index.js"(exports, module) {
@@ -214003,7 +213943,8 @@ ${multilineCommands}`;
214003
213943
  if (noChar)
214004
213944
  left = left.replace(" ", "");
214005
213945
  let right = flag.summary || flag.description || "";
214006
- if (flag.type === "option" && flag.default) {
213946
+ const canBeCached = !(this.opts.respectNoCacheDefault === true && flag.noCacheDefault === true);
213947
+ if (flag.type === "option" && flag.default && canBeCached) {
214007
213948
  right = `${(0, theme_1.colorize)(this.config?.theme?.flagDefaultValue, `[default: ${flag.default}]`)} ${right}`;
214008
213949
  }
214009
213950
  if (flag.required)
@@ -214378,7 +214319,8 @@ var require_help = __commonJS({
214378
214319
  }
214379
214320
  if (command.deprecateAliases && command.aliases.includes(name)) {
214380
214321
  const actualCmd = this.config.commands.find((c) => c.aliases.includes(name));
214381
- const opts = { ...command.deprecationOptions, ...actualCmd ? { to: actualCmd.id } : {} };
214322
+ const actualCmdName = actualCmd ? (0, ids_1.toConfiguredId)(actualCmd.id, this.config) : "";
214323
+ const opts = { ...command.deprecationOptions, ...actualCmd ? { to: actualCmdName } : {} };
214382
214324
  this.log(`${(0, util_2.formatCommandDeprecationWarning)((0, ids_1.toConfiguredId)(name, this.config), opts)}
214383
214325
  `);
214384
214326
  }
@@ -224206,7 +224148,6 @@ var require_config = __commonJS({
224206
224148
  Object.defineProperty(exports, "__esModule", { value: true });
224207
224149
  exports.Config = void 0;
224208
224150
  var ejs = __importStar(require_ejs());
224209
- var is_wsl_1 = __importDefault(require_is_wsl());
224210
224151
  var node_os_1 = __require("node:os");
224211
224152
  var node_path_1 = __require("node:path");
224212
224153
  var node_url_1 = __require("node:url");
@@ -224451,7 +224392,8 @@ var require_config = __commonJS({
224451
224392
  this.channel = this.options.channel || channelFromVersion(this.version);
224452
224393
  this.valid = this.rootPlugin.valid;
224453
224394
  this.arch = (0, node_os_1.arch)() === "ia32" ? "x86" : (0, node_os_1.arch)();
224454
- this.platform = is_wsl_1.default ? "wsl" : (0, os_1.getPlatform)();
224395
+ const { default: isWSL } = await import("./is-wsl-VRYIKEOD.js");
224396
+ this.platform = isWSL ? "wsl" : (0, os_1.getPlatform)();
224455
224397
  this.windows = this.platform === "win32";
224456
224398
  this.bin = this.pjson.oclif.bin || this.name;
224457
224399
  this.binAliases = this.pjson.oclif.binAliases;
@@ -226088,7 +226030,7 @@ var require_command2 = __commonJS({
226088
226030
  const aliases = (0, util_2.uniq)([...flagDef?.aliases ?? [], ...flagDef?.charAliases ?? []]).map((a) => a.length === 1 ? `-${a}` : `--${a}`);
226089
226031
  if (aliases.length === 0)
226090
226032
  return;
226091
- const foundAliases = aliases.filter((alias) => this.argv.some((a) => a.startsWith(alias)));
226033
+ const foundAliases = aliases.filter((alias) => this.argv.includes(alias));
226092
226034
  for (const alias of foundAliases) {
226093
226035
  let preferredUsage = `--${flagDef?.name}`;
226094
226036
  if (flagDef?.char) {
@@ -226334,6 +226276,7 @@ var require_lib = __commonJS({
226334
226276
  };
226335
226277
  Object.defineProperty(exports, "__esModule", { value: true });
226336
226278
  exports.ux = exports.toStandardizedId = exports.toConfiguredId = exports.settings = exports.Performance = exports.Parser = exports.ModuleLoader = exports.getLogger = exports.Interfaces = exports.loadHelpClass = exports.HelpBase = exports.Help = exports.CommandHelp = exports.flush = exports.Flags = exports.execute = exports.handle = exports.Errors = exports.Plugin = exports.Config = exports.Command = exports.Args = void 0;
226279
+ var util_1 = require_util();
226337
226280
  function checkCWD() {
226338
226281
  try {
226339
226282
  process.cwd();
@@ -226343,7 +226286,22 @@ var require_lib = __commonJS({
226343
226286
  }
226344
226287
  }
226345
226288
  }
226289
+ function checkNodeVersion() {
226290
+ if (process.env.OCLIF_DISABLE_ENGINE_WARNING && (0, util_1.isTruthy)(process.env.OCLIF_DISABLE_ENGINE_WARNING))
226291
+ return;
226292
+ try {
226293
+ const semver = require_semver();
226294
+ const path = __require("node:path");
226295
+ const root = path.join(__dirname, "..");
226296
+ const pjson = __require(path.join(root, "package.json"));
226297
+ if (!semver.satisfies(process.versions.node, pjson.engines.node)) {
226298
+ process.emitWarning(`Node version must be ${pjson.engines.node} to use this CLI. Current node version: ${process.versions.node}`);
226299
+ }
226300
+ } catch {
226301
+ }
226302
+ }
226346
226303
  checkCWD();
226304
+ checkNodeVersion();
226347
226305
  exports.Args = __importStar(require_args());
226348
226306
  var command_1 = require_command2();
226349
226307
  Object.defineProperty(exports, "Command", { enumerable: true, get: function() {
@@ -0,0 +1,96 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ init_cjs_shims
5
+ } from "./chunk-SFFL7AYM.js";
6
+
7
+ // node_modules/validate-npm-package-name/lib/index.js
8
+ var require_lib = __commonJS({
9
+ "node_modules/validate-npm-package-name/lib/index.js"(exports, module) {
10
+ "use strict";
11
+ init_cjs_shims();
12
+ var { builtinModules: builtins } = __require("module");
13
+ var scopedPackagePattern = new RegExp("^(?:@([^/]+?)[/])?([^/]+?)$");
14
+ var blacklist = [
15
+ "node_modules",
16
+ "favicon.ico"
17
+ ];
18
+ function validate(name) {
19
+ var warnings = [];
20
+ var errors = [];
21
+ if (name === null) {
22
+ errors.push("name cannot be null");
23
+ return done(warnings, errors);
24
+ }
25
+ if (name === void 0) {
26
+ errors.push("name cannot be undefined");
27
+ return done(warnings, errors);
28
+ }
29
+ if (typeof name !== "string") {
30
+ errors.push("name must be a string");
31
+ return done(warnings, errors);
32
+ }
33
+ if (!name.length) {
34
+ errors.push("name length must be greater than zero");
35
+ }
36
+ if (name.match(/^\./)) {
37
+ errors.push("name cannot start with a period");
38
+ }
39
+ if (name.match(/^_/)) {
40
+ errors.push("name cannot start with an underscore");
41
+ }
42
+ if (name.trim() !== name) {
43
+ errors.push("name cannot contain leading or trailing spaces");
44
+ }
45
+ blacklist.forEach(function(blacklistedName) {
46
+ if (name.toLowerCase() === blacklistedName) {
47
+ errors.push(blacklistedName + " is a blacklisted name");
48
+ }
49
+ });
50
+ if (builtins.includes(name.toLowerCase())) {
51
+ warnings.push(name + " is a core module name");
52
+ }
53
+ if (name.length > 214) {
54
+ warnings.push("name can no longer contain more than 214 characters");
55
+ }
56
+ if (name.toLowerCase() !== name) {
57
+ warnings.push("name can no longer contain capital letters");
58
+ }
59
+ if (/[~'!()*]/.test(name.split("/").slice(-1)[0])) {
60
+ warnings.push(`name can no longer contain special characters ("~'!()*")`);
61
+ }
62
+ if (encodeURIComponent(name) !== name) {
63
+ var nameMatch = name.match(scopedPackagePattern);
64
+ if (nameMatch) {
65
+ var user = nameMatch[1];
66
+ var pkg = nameMatch[2];
67
+ if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {
68
+ return done(warnings, errors);
69
+ }
70
+ }
71
+ errors.push("name can only contain URL-friendly characters");
72
+ }
73
+ return done(warnings, errors);
74
+ }
75
+ var done = function(warnings, errors) {
76
+ var result = {
77
+ validForNewPackages: errors.length === 0 && warnings.length === 0,
78
+ validForOldPackages: errors.length === 0,
79
+ warnings,
80
+ errors
81
+ };
82
+ if (!result.warnings.length) {
83
+ delete result.warnings;
84
+ }
85
+ if (!result.errors.length) {
86
+ delete result.errors;
87
+ }
88
+ return result;
89
+ };
90
+ module.exports = validate;
91
+ }
92
+ });
93
+
94
+ export {
95
+ require_lib
96
+ };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-3RRU6HDC.js";
3
+ } from "./chunk-5F4JTP3T.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-RRP6KXWN.js";
7
+ } from "./chunk-SFFL7AYM.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-3RRU6HDC.js";
3
+ } from "./chunk-5F4JTP3T.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-RRP6KXWN.js";
7
+ } from "./chunk-SFFL7AYM.js";
8
8
 
9
9
  // src/hooks/init/init.ts
10
10
  init_cjs_shims();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-3RRU6HDC.js";
3
+ } from "./chunk-5F4JTP3T.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-RRP6KXWN.js";
7
+ } from "./chunk-SFFL7AYM.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-3RRU6HDC.js";
3
+ } from "./chunk-5F4JTP3T.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
7
- } from "./chunk-RRP6KXWN.js";
7
+ } from "./chunk-SFFL7AYM.js";
8
8
 
9
9
  // src/commands/hello/index.ts
10
10
  init_cjs_shims();
@@ -48,6 +48,7 @@ var init_cjs_shims = __esm({
48
48
 
49
49
  export {
50
50
  __require,
51
+ __esm,
51
52
  __commonJS,
52
53
  __toESM,
53
54
  init_cjs_shims
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-AUHJGYRU.js";
4
- import "../chunk-3RRU6HDC.js";
5
- import "../chunk-RRP6KXWN.js";
3
+ } from "../chunk-B3QWTEZF.js";
4
+ import "../chunk-5F4JTP3T.js";
5
+ import "../chunk-4OALFURW.js";
6
+ import "../chunk-SFFL7AYM.js";
6
7
  export {
7
8
  ESBuild as default
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-LSHCNEHU.js";
4
- import "../../chunk-3RRU6HDC.js";
5
- import "../../chunk-RRP6KXWN.js";
3
+ } from "../../chunk-RHU25FK4.js";
4
+ import "../../chunk-5F4JTP3T.js";
5
+ import "../../chunk-4OALFURW.js";
6
+ import "../../chunk-SFFL7AYM.js";
6
7
  export {
7
8
  Hello as default
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-KKU35C2V.js";
4
- import "../../chunk-3RRU6HDC.js";
5
- import "../../chunk-RRP6KXWN.js";
3
+ } from "../../chunk-OFUGCHGD.js";
4
+ import "../../chunk-5F4JTP3T.js";
5
+ import "../../chunk-4OALFURW.js";
6
+ import "../../chunk-SFFL7AYM.js";
6
7
  export {
7
8
  World as default
8
9
  };
@@ -1,8 +1,9 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-4MVRD523.js";
4
- import "../../chunk-3RRU6HDC.js";
5
- import "../../chunk-RRP6KXWN.js";
3
+ } from "../../chunk-NTCWJ3RH.js";
4
+ import "../../chunk-5F4JTP3T.js";
5
+ import "../../chunk-4OALFURW.js";
6
+ import "../../chunk-SFFL7AYM.js";
6
7
  export {
7
8
  init_default as default
8
9
  };
package/dist/index.js CHANGED
@@ -1,28 +1,30 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-AUHJGYRU.js";
3
+ } from "./chunk-B3QWTEZF.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-LSHCNEHU.js";
6
+ } from "./chunk-RHU25FK4.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-KKU35C2V.js";
9
+ } from "./chunk-OFUGCHGD.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-4MVRD523.js";
12
+ } from "./chunk-NTCWJ3RH.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-3RRU6HDC.js";
17
+ } from "./chunk-5F4JTP3T.js";
18
+ import {
19
+ require_lib as require_lib2
20
+ } from "./chunk-65VALZLM.js";
18
21
  import {
19
- require_lib as require_lib2,
20
22
  require_semver
21
- } from "./chunk-5GHOPL77.js";
23
+ } from "./chunk-4OALFURW.js";
22
24
  import {
23
25
  __toESM,
24
26
  init_cjs_shims
25
- } from "./chunk-RRP6KXWN.js";
27
+ } from "./chunk-SFFL7AYM.js";
26
28
 
27
29
  // src/index.ts
28
30
  init_cjs_shims();
@@ -320,7 +322,7 @@ var NPM = class {
320
322
  const npmPath = npmPjsonPath.slice(0, Math.max(0, npmPjsonPath.lastIndexOf(sep)));
321
323
  this.bin = join(npmPath, npmPjson.bin.npm);
322
324
  } catch {
323
- const { default: which } = await import("./lib-ZFTB4C3N.js");
325
+ const { default: which } = await import("./lib-N65HKTQ6.js");
324
326
  this.bin = await which("npm");
325
327
  }
326
328
  if (!this.bin) {
@@ -401,7 +403,7 @@ var Yarn = class {
401
403
  try {
402
404
  this.bin = require2.resolve("yarn/bin/yarn.js", { paths: [this.config.root, fileURLToPath2(import.meta.url)] });
403
405
  } catch {
404
- const { default: which } = await import("./lib-ZFTB4C3N.js");
406
+ const { default: which } = await import("./lib-N65HKTQ6.js");
405
407
  this.bin = await which("yarn");
406
408
  }
407
409
  if (!this.bin) {
@@ -500,7 +502,7 @@ var Plugins = class {
500
502
  const url = name;
501
503
  const output = await this.npm.install([...args, url], options);
502
504
  const { dependencies } = await this.pjson();
503
- const { default: npa } = await import("./npa-4KV3QGA2.js");
505
+ const { default: npa } = await import("./npa-DKKU23QO.js");
504
506
  const normalizedUrl = npa(url);
505
507
  const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
506
508
  const normalized = npa(u);
@@ -0,0 +1,91 @@
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
+ };
@@ -2,7 +2,7 @@ import {
2
2
  __commonJS,
3
3
  __require,
4
4
  init_cjs_shims
5
- } from "./chunk-RRP6KXWN.js";
5
+ } from "./chunk-SFFL7AYM.js";
6
6
 
7
7
  // node_modules/isexe/dist/cjs/posix.js
8
8
  var require_posix = __commonJS({
@@ -1,12 +1,14 @@
1
1
  import {
2
- require_lib,
2
+ require_lib
3
+ } from "./chunk-65VALZLM.js";
4
+ import {
3
5
  require_semver
4
- } from "./chunk-5GHOPL77.js";
6
+ } from "./chunk-4OALFURW.js";
5
7
  import {
6
8
  __commonJS,
7
9
  __require,
8
10
  init_cjs_shims
9
- } from "./chunk-RRP6KXWN.js";
11
+ } from "./chunk-SFFL7AYM.js";
10
12
 
11
13
  // node_modules/lru-cache/dist/commonjs/index.js
12
14
  var require_commonjs = __commonJS({
@@ -474,5 +474,5 @@
474
474
  "enableJsonFlag": false
475
475
  }
476
476
  },
477
- "version": "0.5.34"
477
+ "version": "0.5.36"
478
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.34",
3
+ "version": "0.5.36",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -13,7 +13,7 @@
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
15
  "@oclif/plugin-test-esm-1": "^0.8.30",
16
- "@oclif/plugin-plugins": "^5.4.8"
16
+ "@oclif/plugin-plugins": "^5.4.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.14.34",
31
+ "oclif": "^4.14.36",
32
32
  "shx": "^0.3.4",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"