@oclif/plugin-test-esbuild 0.5.18 → 0.5.19
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.
|
|
20
|
+
@oclif/plugin-test-esbuild/0.5.19 linux-x64 node-v20.16.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -838,6 +838,7 @@ var require_lrucache = __commonJS({
|
|
|
838
838
|
var require_range = __commonJS({
|
|
839
839
|
"node_modules/semver/classes/range.js"(exports, module) {
|
|
840
840
|
init_cjs_shims();
|
|
841
|
+
var SPACE_CHARACTERS = /\s+/g;
|
|
841
842
|
var Range = class _Range {
|
|
842
843
|
constructor(range, options) {
|
|
843
844
|
options = parseOptions(options);
|
|
@@ -851,13 +852,13 @@ var require_range = __commonJS({
|
|
|
851
852
|
if (range instanceof Comparator) {
|
|
852
853
|
this.raw = range.value;
|
|
853
854
|
this.set = [[range]];
|
|
854
|
-
this.
|
|
855
|
+
this.formatted = void 0;
|
|
855
856
|
return this;
|
|
856
857
|
}
|
|
857
858
|
this.options = options;
|
|
858
859
|
this.loose = !!options.loose;
|
|
859
860
|
this.includePrerelease = !!options.includePrerelease;
|
|
860
|
-
this.raw = range.trim().
|
|
861
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
|
861
862
|
this.set = this.raw.split("||").map((r) => this.parseRange(r.trim())).filter((c) => c.length);
|
|
862
863
|
if (!this.set.length) {
|
|
863
864
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
|
@@ -876,10 +877,27 @@ var require_range = __commonJS({
|
|
|
876
877
|
}
|
|
877
878
|
}
|
|
878
879
|
}
|
|
879
|
-
this.
|
|
880
|
+
this.formatted = void 0;
|
|
881
|
+
}
|
|
882
|
+
get range() {
|
|
883
|
+
if (this.formatted === void 0) {
|
|
884
|
+
this.formatted = "";
|
|
885
|
+
for (let i = 0; i < this.set.length; i++) {
|
|
886
|
+
if (i > 0) {
|
|
887
|
+
this.formatted += "||";
|
|
888
|
+
}
|
|
889
|
+
const comps = this.set[i];
|
|
890
|
+
for (let k = 0; k < comps.length; k++) {
|
|
891
|
+
if (k > 0) {
|
|
892
|
+
this.formatted += " ";
|
|
893
|
+
}
|
|
894
|
+
this.formatted += comps[k].toString().trim();
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
return this.formatted;
|
|
880
899
|
}
|
|
881
900
|
format() {
|
|
882
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
|
883
901
|
return this.range;
|
|
884
902
|
}
|
|
885
903
|
toString() {
|
package/dist/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2,
|
|
20
20
|
require_semver
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-S5N7NKOT.js";
|
|
22
22
|
import {
|
|
23
23
|
__toESM,
|
|
24
24
|
init_cjs_shims
|
|
@@ -500,7 +500,7 @@ var Plugins = class {
|
|
|
500
500
|
const url = name;
|
|
501
501
|
const output = await this.npm.install([...args, url], options);
|
|
502
502
|
const { dependencies } = await this.pjson();
|
|
503
|
-
const { default: npa } = await import("./npa-
|
|
503
|
+
const { default: npa } = await import("./npa-2DD665WN.js");
|
|
504
504
|
const normalizedUrl = npa(url);
|
|
505
505
|
const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
|
|
506
506
|
const normalized = npa(u);
|
|
@@ -1134,6 +1134,10 @@ Use the <%= config.scopedEnvVarKey('NPM_REGISTRY') %> environment variable to se
|
|
|
1134
1134
|
import_core7.ux.action.stop(bold.red("failed"));
|
|
1135
1135
|
throw error;
|
|
1136
1136
|
}
|
|
1137
|
+
const pluginInstance = new import_core7.Plugin(plugin);
|
|
1138
|
+
await pluginInstance.load();
|
|
1139
|
+
this.config.plugins.set(pluginInstance.name, pluginInstance);
|
|
1140
|
+
await this.config.runHook("plugins:postinstall", {});
|
|
1137
1141
|
import_core7.ux.action.stop(`installed v${plugin.version}`);
|
|
1138
1142
|
}
|
|
1139
1143
|
}
|
|
@@ -1289,6 +1293,7 @@ var PluginsUninstall = class _PluginsUninstall extends import_core10.Command {
|
|
|
1289
1293
|
config: this.config,
|
|
1290
1294
|
logLevel: determineLogLevel(this.config, flags, "silent")
|
|
1291
1295
|
});
|
|
1296
|
+
const pluginNameToDelete = [];
|
|
1292
1297
|
if (argv.length === 0)
|
|
1293
1298
|
argv.push(".");
|
|
1294
1299
|
for (const plugin of argv) {
|
|
@@ -1305,12 +1310,17 @@ var PluginsUninstall = class _PluginsUninstall extends import_core10.Command {
|
|
|
1305
1310
|
const displayName = friendly === "." ? name : friendly ?? name;
|
|
1306
1311
|
import_core10.ux.action.start(`${this.config.name}: Uninstalling ${displayName}`);
|
|
1307
1312
|
await plugins.uninstall(name);
|
|
1313
|
+
pluginNameToDelete.push(name);
|
|
1308
1314
|
} catch (error) {
|
|
1309
1315
|
import_core10.ux.action.stop(bold.red("failed"));
|
|
1310
1316
|
throw error;
|
|
1311
1317
|
}
|
|
1312
1318
|
import_core10.ux.action.stop();
|
|
1313
1319
|
}
|
|
1320
|
+
for (const p of pluginNameToDelete) {
|
|
1321
|
+
this.config.plugins.delete(p);
|
|
1322
|
+
}
|
|
1323
|
+
await this.config.runHook("plugins:postuninstall", {});
|
|
1314
1324
|
}
|
|
1315
1325
|
};
|
|
1316
1326
|
|
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.19",
|
|
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.15",
|
|
16
|
-
"@oclif/plugin-plugins": "^5.
|
|
16
|
+
"@oclif/plugin-plugins": "^5.4.1"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/prettier-config": "^0.2.1",
|