@oclif/plugin-test-esbuild 0.5.152 → 0.5.153
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 +1 -1
- package/dist/{chunk-JH6JEIPF.js → chunk-3BSLRBNY.js} +1 -1
- package/dist/{chunk-STWCMBB3.js → chunk-7AOCZ3QL.js} +1 -1
- package/dist/{chunk-I6657WSN.js → chunk-ACQ6AFRE.js} +1 -1
- package/dist/{chunk-LYGZNQLU.js → chunk-KI5U7IHU.js} +1 -1
- package/dist/{chunk-UFI2Z2TC.js → chunk-R2OLING5.js} +3 -2
- package/dist/{chunk-D4O2XCYQ.js → chunk-T7UGPNIZ.js} +58 -34
- package/dist/commands/esbuild.js +3 -3
- package/dist/commands/hello/index.js +3 -3
- package/dist/commands/hello/world.js +3 -3
- package/dist/hooks/init/init.js +3 -3
- package/dist/index.js +7 -7
- package/dist/{npa-MD3JHKGU.js → npa-L34VQLAA.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +2 -2
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.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.153 linux-x64 node-v24.16.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -1154,15 +1154,16 @@ var require_range = __commonJS({
|
|
|
1154
1154
|
};
|
|
1155
1155
|
var replaceTilde = (comp, options) => {
|
|
1156
1156
|
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE];
|
|
1157
|
+
const z = options.includePrerelease ? "-0" : "";
|
|
1157
1158
|
return comp.replace(r, (_, M, m, p, pr) => {
|
|
1158
1159
|
debug("tilde", comp, _, M, m, p, pr);
|
|
1159
1160
|
let ret;
|
|
1160
1161
|
if (isX(M)) {
|
|
1161
1162
|
ret = "";
|
|
1162
1163
|
} else if (isX(m)) {
|
|
1163
|
-
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`;
|
|
1164
|
+
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`;
|
|
1164
1165
|
} else if (isX(p)) {
|
|
1165
|
-
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`;
|
|
1166
|
+
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`;
|
|
1166
1167
|
} else if (pr) {
|
|
1167
1168
|
debug("replaceTilde pr", pr);
|
|
1168
1169
|
ret = `>=${M}.${m}.${p}-${pr} <${M}.${+m + 1}.0-0`;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
require_semver
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R2OLING5.js";
|
|
4
4
|
import {
|
|
5
5
|
__commonJS,
|
|
6
6
|
__require,
|
|
@@ -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.11.
|
|
257
|
+
version: "4.11.8",
|
|
258
258
|
author: "Salesforce",
|
|
259
259
|
bugs: "https://github.com/oclif/core/issues",
|
|
260
260
|
dependencies: {
|
|
@@ -3873,21 +3873,36 @@ var require_pretty_print = __commonJS({
|
|
|
3873
3873
|
return `${label}
|
|
3874
3874
|
${(0, indent_string_1.default)(multiple, 2)}`;
|
|
3875
3875
|
};
|
|
3876
|
+
function isCombinedErrorType(obj) {
|
|
3877
|
+
return Boolean(obj) && "name" in obj && "message" in obj;
|
|
3878
|
+
}
|
|
3876
3879
|
function prettyPrint(error) {
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3880
|
+
const prettyPrintedErrors = [];
|
|
3881
|
+
let currentError = error;
|
|
3882
|
+
let isDeep = false;
|
|
3883
|
+
while (isCombinedErrorType(currentError)) {
|
|
3884
|
+
if (settings_1.settings.debug && currentError.stack) {
|
|
3885
|
+
prettyPrintedErrors.push(`${isDeep ? "Caused by: " : ""}${currentError.stack}`);
|
|
3886
|
+
} else {
|
|
3887
|
+
const { bang, code, message, name: errorSuffix, ref, suggestions } = currentError;
|
|
3888
|
+
const formattedHeader = message ? `${errorSuffix || "Error"}: ${message}` : void 0;
|
|
3889
|
+
const formattedCode = code ? `Code: ${code}` : void 0;
|
|
3890
|
+
const formattedSuggestions = formatSuggestions(suggestions);
|
|
3891
|
+
const formattedReference = ref ? `Reference: ${ref}` : void 0;
|
|
3892
|
+
const formatted = [formattedHeader, formattedCode, formattedSuggestions, formattedReference].filter(Boolean).join("\n");
|
|
3893
|
+
let output = `${isDeep ? "Caused by: " : ""}${formatted}`;
|
|
3894
|
+
output = (0, wrap_ansi_1.default)(output, screen_1.errtermwidth - 6, { hard: true, trim: false });
|
|
3895
|
+
if (!settings_1.settings.debug) {
|
|
3896
|
+
output = (0, indent_string_1.default)(output, 3);
|
|
3897
|
+
output = (0, indent_string_1.default)(output, 1, { includeEmptyLines: true, indent: bang || "" });
|
|
3898
|
+
output = (0, indent_string_1.default)(output, 1);
|
|
3899
|
+
}
|
|
3900
|
+
prettyPrintedErrors.push(output);
|
|
3901
|
+
}
|
|
3902
|
+
isDeep = true;
|
|
3903
|
+
currentError = currentError.cause ?? null;
|
|
3904
|
+
}
|
|
3905
|
+
return prettyPrintedErrors.join("\n");
|
|
3891
3906
|
}
|
|
3892
3907
|
}
|
|
3893
3908
|
});
|
|
@@ -217724,14 +217739,37 @@ var require_os = __commonJS({
|
|
|
217724
217739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
217725
217740
|
exports.getHomeDir = getHomeDir;
|
|
217726
217741
|
exports.getPlatform = getPlatform;
|
|
217742
|
+
exports.getShell = getShell;
|
|
217727
217743
|
var is_wsl_1 = __importDefault(require_is_wsl());
|
|
217744
|
+
var node_child_process_1 = __require("node:child_process");
|
|
217728
217745
|
var node_os_1 = __require("node:os");
|
|
217746
|
+
var node_path_1 = __importDefault(__require("node:path"));
|
|
217729
217747
|
function getHomeDir() {
|
|
217730
217748
|
return (0, node_os_1.homedir)();
|
|
217731
217749
|
}
|
|
217732
217750
|
function getPlatform() {
|
|
217733
217751
|
return is_wsl_1.default ? "wsl" : (0, node_os_1.platform)();
|
|
217734
217752
|
}
|
|
217753
|
+
function getShell() {
|
|
217754
|
+
let shellPath;
|
|
217755
|
+
const SHELL = process.env.SHELL ?? (0, node_os_1.userInfo)().shell?.split(node_path_1.default.sep)?.pop();
|
|
217756
|
+
if (SHELL) {
|
|
217757
|
+
shellPath = SHELL.split("/");
|
|
217758
|
+
} else if (getPlatform() === "win32") {
|
|
217759
|
+
shellPath = determineWindowsShell().split(node_path_1.default.sep);
|
|
217760
|
+
} else {
|
|
217761
|
+
shellPath = ["unknown"];
|
|
217762
|
+
}
|
|
217763
|
+
return shellPath.at(-1) ?? "unknown";
|
|
217764
|
+
}
|
|
217765
|
+
function determineWindowsShell() {
|
|
217766
|
+
try {
|
|
217767
|
+
const parentProcessName = (0, node_child_process_1.execSync)(`powershell.exe -NoProfile -Command "(Get-CimInstance Win32_Process -Filter 'ProcessID = ${process.ppid}').Name"`, { encoding: "utf8" });
|
|
217768
|
+
return parentProcessName.includes("powershell") || parentProcessName.includes("pwsh") ? "powershell" : process.env.COMSPEC ?? "cmd.exe";
|
|
217769
|
+
} catch {
|
|
217770
|
+
return process.env.COMSPEC ?? "cmd.exe";
|
|
217771
|
+
}
|
|
217772
|
+
}
|
|
217735
217773
|
}
|
|
217736
217774
|
});
|
|
217737
217775
|
|
|
@@ -223779,23 +223817,6 @@ var require_config = __commonJS({
|
|
|
223779
223817
|
shell: this.shell
|
|
223780
223818
|
};
|
|
223781
223819
|
}
|
|
223782
|
-
_shell() {
|
|
223783
|
-
let shellPath;
|
|
223784
|
-
const { COMSPEC } = process.env;
|
|
223785
|
-
const SHELL = process.env.SHELL ?? (0, node_os_1.userInfo)().shell?.split(node_path_1.sep)?.pop();
|
|
223786
|
-
if (SHELL) {
|
|
223787
|
-
shellPath = SHELL.split("/");
|
|
223788
|
-
} else if (this.windows && (process.title.toLowerCase().includes("powershell") || process.title.toLowerCase().includes("pwsh"))) {
|
|
223789
|
-
shellPath = ["powershell"];
|
|
223790
|
-
} else if (this.windows && (process.title.toLowerCase().includes("command prompt") || process.title.toLowerCase().includes("cmd"))) {
|
|
223791
|
-
shellPath = ["cmd.exe"];
|
|
223792
|
-
} else if (this.windows && COMSPEC) {
|
|
223793
|
-
shellPath = COMSPEC.split(/\\|\//);
|
|
223794
|
-
} else {
|
|
223795
|
-
shellPath = ["unknown"];
|
|
223796
|
-
}
|
|
223797
|
-
return shellPath.at(-1) ?? "unknown";
|
|
223798
|
-
}
|
|
223799
223820
|
dir(category) {
|
|
223800
223821
|
const base = process.env[`XDG_${category.toUpperCase()}_HOME`] || this.windows && process.env.LOCALAPPDATA || (0, node_path_1.join)(this.home, category === "data" ? ".local/share" : "." + category);
|
|
223801
223822
|
return (0, node_path_1.join)(base, this.dirname);
|
|
@@ -223896,7 +223917,7 @@ var require_config = __commonJS({
|
|
|
223896
223917
|
if (this.platform === "win32")
|
|
223897
223918
|
this.dirname = this.dirname.replace("/", "\\");
|
|
223898
223919
|
this.userAgent = `${this.name}/${this.version} ${this.platform}-${this.arch} node-${process.version}`;
|
|
223899
|
-
this.shell =
|
|
223920
|
+
this.shell = (0, os_1.getShell)();
|
|
223900
223921
|
this.home = process.env.HOME || this.windows && this.windowsHome() || (0, os_1.getHomeDir)() || (0, node_os_1.tmpdir)();
|
|
223901
223922
|
this.cacheDir = this.scopedEnvVar("CACHE_DIR") || this.macosCacheDir() || this.dir("cache");
|
|
223902
223923
|
this.configDir = this.scopedEnvVar("CONFIG_DIR") || this.dir("config");
|
|
@@ -225668,6 +225689,9 @@ var require_command2 = __commonJS({
|
|
|
225668
225689
|
return results;
|
|
225669
225690
|
}
|
|
225670
225691
|
toErrorJson(err) {
|
|
225692
|
+
if (err instanceof Error) {
|
|
225693
|
+
return { error: { ...err, message: err.message, name: err.name } };
|
|
225694
|
+
}
|
|
225671
225695
|
return { error: err };
|
|
225672
225696
|
}
|
|
225673
225697
|
toSuccessJson(result) {
|
package/dist/commands/esbuild.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-KI5U7IHU.js";
|
|
4
|
+
import "../chunk-T7UGPNIZ.js";
|
|
5
|
+
import "../chunk-R2OLING5.js";
|
|
6
6
|
import "../chunk-6AAAS5BM.js";
|
|
7
7
|
export {
|
|
8
8
|
ESBuild as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Hello
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-3BSLRBNY.js";
|
|
4
|
+
import "../../chunk-T7UGPNIZ.js";
|
|
5
|
+
import "../../chunk-R2OLING5.js";
|
|
6
6
|
import "../../chunk-6AAAS5BM.js";
|
|
7
7
|
export {
|
|
8
8
|
Hello as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
World
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-7AOCZ3QL.js";
|
|
4
|
+
import "../../chunk-T7UGPNIZ.js";
|
|
5
|
+
import "../../chunk-R2OLING5.js";
|
|
6
6
|
import "../../chunk-6AAAS5BM.js";
|
|
7
7
|
export {
|
|
8
8
|
World as default
|
package/dist/hooks/init/init.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
init_default
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ACQ6AFRE.js";
|
|
4
|
+
import "../../chunk-T7UGPNIZ.js";
|
|
5
|
+
import "../../chunk-R2OLING5.js";
|
|
6
6
|
import "../../chunk-6AAAS5BM.js";
|
|
7
7
|
export {
|
|
8
8
|
init_default as default
|
package/dist/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-KI5U7IHU.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3BSLRBNY.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-7AOCZ3QL.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ACQ6AFRE.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-T7UGPNIZ.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2
|
|
20
20
|
} from "./chunk-UGF5GYN7.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-R2OLING5.js";
|
|
24
24
|
import {
|
|
25
25
|
__toESM,
|
|
26
26
|
init_cjs_shims
|
|
@@ -515,7 +515,7 @@ var Plugins = class {
|
|
|
515
515
|
const url = name;
|
|
516
516
|
const output = await this.npm.install([...args, url], options);
|
|
517
517
|
const { dependencies } = await this.pjson();
|
|
518
|
-
const { default: npa } = await import("./npa-
|
|
518
|
+
const { default: npa } = await import("./npa-L34VQLAA.js");
|
|
519
519
|
const normalizedUrl = npa(url);
|
|
520
520
|
const matches = Object.entries(dependencies ?? {}).find(([, npmVersion]) => {
|
|
521
521
|
const normalized = npa(npmVersion);
|
package/oclif.manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oclif/plugin-test-esbuild",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.153",
|
|
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-plugins": "^5.4.
|
|
15
|
+
"@oclif/plugin-plugins": "^5.4.77",
|
|
16
16
|
"@oclif/plugin-test-esm-1": "^0.8.128"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|