@oclif/plugin-test-esbuild 0.5.5 → 0.5.7
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/index.js +18 -1
- package/oclif.manifest.json +1 -1
- package/package.json +5 -5
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.7 linux-x64 node-v20.14.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
package/dist/index.js
CHANGED
|
@@ -812,13 +812,16 @@ var PluginsIndex = class _PluginsIndex extends import_core5.Command {
|
|
|
812
812
|
}
|
|
813
813
|
createTree(plugin) {
|
|
814
814
|
const tree = {};
|
|
815
|
-
for (const p of plugin.children) {
|
|
815
|
+
for (const p of plugin.children ?? []) {
|
|
816
816
|
tree[this.formatPlugin(p)] = this.createTree(p);
|
|
817
817
|
}
|
|
818
818
|
return tree;
|
|
819
819
|
}
|
|
820
820
|
display(plugins) {
|
|
821
|
+
const rootPlugin = plugins.find((p) => p.root === this.config.root);
|
|
821
822
|
for (const plugin of plugins.filter((p) => !p.parent)) {
|
|
823
|
+
if (plugin.name === rootPlugin?.name)
|
|
824
|
+
continue;
|
|
822
825
|
this.log(this.formatPlugin(plugin));
|
|
823
826
|
if (plugin.children && plugin.children.length > 0) {
|
|
824
827
|
const tree = this.createTree(plugin);
|
|
@@ -1093,10 +1096,24 @@ Use the <%= config.scopedEnvVarKey('NPM_REGISTRY') %> environment variable to se
|
|
|
1093
1096
|
logLevel: determineLogLevel(this.config, this.flags, "notice")
|
|
1094
1097
|
});
|
|
1095
1098
|
const aliases = this.config.pjson.oclif.aliases || {};
|
|
1099
|
+
const count = argv.length;
|
|
1096
1100
|
for (let name of argv) {
|
|
1097
1101
|
if (aliases[name] === null)
|
|
1098
1102
|
this.error(`${name} is blocked`);
|
|
1099
1103
|
name = aliases[name] || name;
|
|
1104
|
+
if (name === this.config.name) {
|
|
1105
|
+
const updateInstructions = (
|
|
1106
|
+
// this.config.binPath is set when the CLI is installed from an installer but not when it's installed from npm
|
|
1107
|
+
this.config.binPath && this.config.plugins.get("@oclif/plugin-update") ? ` Use "${this.config.bin} update" to update ${this.config.name}.` : ""
|
|
1108
|
+
);
|
|
1109
|
+
const msg = `Ignoring top-level CLI plugin ${this.config.name}.${updateInstructions}`;
|
|
1110
|
+
if (count === 1) {
|
|
1111
|
+
this.error(msg);
|
|
1112
|
+
} else {
|
|
1113
|
+
this.warn(msg);
|
|
1114
|
+
}
|
|
1115
|
+
continue;
|
|
1116
|
+
}
|
|
1100
1117
|
const p = await this.parsePlugin(plugins, name);
|
|
1101
1118
|
let plugin;
|
|
1102
1119
|
await this.config.runHook("plugins:preinstall", {
|
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.7",
|
|
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": "^4",
|
|
15
|
-
"@oclif/plugin-test-esm-1": "^0.8.
|
|
16
|
-
"@oclif/plugin-plugins": "^5.2
|
|
15
|
+
"@oclif/plugin-test-esm-1": "^0.8.6",
|
|
16
|
+
"@oclif/plugin-plugins": "^5.3.2"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@oclif/prettier-config": "^0.2.1",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"@types/mocha": "^10",
|
|
23
23
|
"@types/node": "^18",
|
|
24
24
|
"chai": "^4",
|
|
25
|
-
"esbuild": "^0.21.
|
|
25
|
+
"esbuild": "^0.21.5",
|
|
26
26
|
"eslint": "^8.57.0",
|
|
27
27
|
"eslint-config-oclif": "^5",
|
|
28
28
|
"eslint-config-oclif-typescript": "^3",
|
|
29
29
|
"eslint-config-prettier": "^9.1.0",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.13.
|
|
31
|
+
"oclif": "^4.13.8",
|
|
32
32
|
"shx": "^0.3.4",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|