@oclif/plugin-test-esbuild 0.5.64 → 0.5.66
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-G5LLDGQV.js → chunk-5PUU2YWS.js} +1 -1
- package/dist/{chunk-TCTBIIZ6.js → chunk-APHIOKHB.js} +1 -1
- package/dist/{chunk-NAYBUSHR.js → chunk-GDI7GCRT.js} +21 -8
- package/dist/{chunk-7XDOOSFZ.js → chunk-JACUNZEU.js} +1 -1
- package/dist/{chunk-QW6QPN74.js → chunk-QONGPQ2N.js} +1 -1
- package/dist/{chunk-SJ2X2LSZ.js → chunk-UT3X33W4.js} +454 -313
- 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 +12 -11
- package/dist/{npa-G53ZOHUR.js → npa-A3BPSVCS.js} +1 -1
- package/oclif.manifest.json +1 -1
- package/package.json +9 -9
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-JACUNZEU.js";
|
|
4
|
+
import "../chunk-UT3X33W4.js";
|
|
5
|
+
import "../chunk-GDI7GCRT.js";
|
|
6
6
|
import "../chunk-RRP6KXWN.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-QONGPQ2N.js";
|
|
4
|
+
import "../../chunk-UT3X33W4.js";
|
|
5
|
+
import "../../chunk-GDI7GCRT.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.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-APHIOKHB.js";
|
|
4
|
+
import "../../chunk-UT3X33W4.js";
|
|
5
|
+
import "../../chunk-GDI7GCRT.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.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-5PUU2YWS.js";
|
|
4
|
+
import "../../chunk-UT3X33W4.js";
|
|
5
|
+
import "../../chunk-GDI7GCRT.js";
|
|
6
6
|
import "../../chunk-RRP6KXWN.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-JACUNZEU.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QONGPQ2N.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-APHIOKHB.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5PUU2YWS.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-UT3X33W4.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2
|
|
20
20
|
} from "./chunk-SO2G2ODZ.js";
|
|
21
21
|
import {
|
|
22
22
|
require_semver
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GDI7GCRT.js";
|
|
24
24
|
import {
|
|
25
25
|
__toESM,
|
|
26
26
|
init_cjs_shims
|
|
@@ -463,6 +463,9 @@ var Plugins = class {
|
|
|
463
463
|
logLevel: this.logLevel
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
|
+
get pjsonPath() {
|
|
467
|
+
return join2(this.config.dataDir, "package.json");
|
|
468
|
+
}
|
|
466
469
|
async add(...plugins) {
|
|
467
470
|
const pjson = await this.pjson();
|
|
468
471
|
const mergedPlugins = [...pjson.oclif.plugins || [], ...plugins];
|
|
@@ -502,7 +505,7 @@ var Plugins = class {
|
|
|
502
505
|
const url = name;
|
|
503
506
|
const output = await this.npm.install([...args, url], options);
|
|
504
507
|
const { dependencies } = await this.pjson();
|
|
505
|
-
const { default: npa } = await import("./npa-
|
|
508
|
+
const { default: npa } = await import("./npa-A3BPSVCS.js");
|
|
506
509
|
const normalizedUrl = npa(url);
|
|
507
510
|
const matches = Object.entries(dependencies ?? {}).find(([, u]) => {
|
|
508
511
|
const normalized = npa(u);
|
|
@@ -521,7 +524,7 @@ var Plugins = class {
|
|
|
521
524
|
notifyUser(plugin, output);
|
|
522
525
|
this.isValidPlugin(plugin);
|
|
523
526
|
await this.add({ name: installedPluginName, type: "user", url });
|
|
524
|
-
const safeToNotExist = /* @__PURE__ */ new Set(["
|
|
527
|
+
const safeToNotExist = /* @__PURE__ */ new Set(["npm-shrinkwrap.json", "oclif.lock", "oclif.manifest.json"]);
|
|
525
528
|
const files = (plugin.pjson.files ?? []).map((f) => join2(root, f)).filter((f) => !safeToNotExist.has(basename(f)));
|
|
526
529
|
this.debug(`checking for existence of files: ${files.join(", ")}`);
|
|
527
530
|
const results = Object.fromEntries(await Promise.all(files?.map(async (f) => [f, await fileExists(f)]) ?? []));
|
|
@@ -747,9 +750,6 @@ Does your current user own the directory ${this.config.dataDir}?`
|
|
|
747
750
|
return false;
|
|
748
751
|
}
|
|
749
752
|
}
|
|
750
|
-
get pjsonPath() {
|
|
751
|
-
return join2(this.config.dataDir, "package.json");
|
|
752
|
-
}
|
|
753
753
|
async readPJSON() {
|
|
754
754
|
try {
|
|
755
755
|
return JSON.parse(await readFile2(this.pjsonPath, "utf8"));
|
|
@@ -1199,6 +1199,7 @@ var Reset = class _Reset extends import_core9.Command {
|
|
|
1199
1199
|
})
|
|
1200
1200
|
};
|
|
1201
1201
|
static summary = "Remove all user-installed and linked plugins.";
|
|
1202
|
+
// eslint-disable-next-line complexity
|
|
1202
1203
|
async run() {
|
|
1203
1204
|
const { flags } = await this.parse(_Reset);
|
|
1204
1205
|
const plugins = new Plugins({
|
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.66",
|
|
4
4
|
"description": "Bundled plugin for testing",
|
|
5
5
|
"author": "Salesforce",
|
|
6
6
|
"bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
|
|
@@ -12,10 +12,11 @@
|
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"@oclif/core": "^4",
|
|
15
|
-
"@oclif/plugin-
|
|
16
|
-
"@oclif/plugin-
|
|
15
|
+
"@oclif/plugin-plugins": "^5.4.29",
|
|
16
|
+
"@oclif/plugin-test-esm-1": "^0.8.56"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
+
"@eslint/compat": "^1.2.5",
|
|
19
20
|
"@oclif/prettier-config": "^0.2.1",
|
|
20
21
|
"@oclif/test": "^4",
|
|
21
22
|
"@types/chai": "^4",
|
|
@@ -23,10 +24,9 @@
|
|
|
23
24
|
"@types/node": "^18",
|
|
24
25
|
"chai": "^4",
|
|
25
26
|
"esbuild": "^0.24.2",
|
|
26
|
-
"eslint": "^
|
|
27
|
-
"eslint-config-oclif": "^
|
|
28
|
-
"eslint-config-
|
|
29
|
-
"eslint-config-prettier": "^9.1.0",
|
|
27
|
+
"eslint": "^9.19.0",
|
|
28
|
+
"eslint-config-oclif": "^6.0.0",
|
|
29
|
+
"eslint-config-prettier": "^10.0.1",
|
|
30
30
|
"mocha": "^10",
|
|
31
31
|
"oclif": "^4.17.17",
|
|
32
32
|
"shx": "^0.3.4",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"node": ">=18.0.0"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
|
40
|
-
"
|
|
40
|
+
"bin/run.js",
|
|
41
41
|
"/dist",
|
|
42
42
|
"/oclif.manifest.json"
|
|
43
43
|
],
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"repository": "oclif/plugin-test-esbuild",
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "shx rm -rf dist && node bin/bundle.js",
|
|
81
|
-
"lint": "eslint
|
|
81
|
+
"lint": "eslint",
|
|
82
82
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
83
83
|
"posttest": "yarn lint",
|
|
84
84
|
"prepack": "yarn build && oclif manifest && oclif readme",
|