@oclif/plugin-test-esbuild 0.5.81 → 0.5.82
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 +7 -4
- package/oclif.manifest.json +1 -1
- package/package.json +6 -6
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.82 linux-x64 node-v22.15.0
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
package/dist/index.js
CHANGED
|
@@ -121,7 +121,7 @@ var import_debug4 = __toESM(require_src(), 1);
|
|
|
121
121
|
var import_semver = __toESM(require_semver(), 1);
|
|
122
122
|
import { spawn as spawn2 } from "node:child_process";
|
|
123
123
|
import { access, mkdir, readFile as readFile2, rename, rm, writeFile } from "node:fs/promises";
|
|
124
|
-
import { basename, dirname, join as join2, resolve } from "node:path";
|
|
124
|
+
import { basename, dirname, join as join2, parse, resolve } from "node:path";
|
|
125
125
|
import { fileURLToPath as fileURLToPath3 } from "node:url";
|
|
126
126
|
|
|
127
127
|
// node_modules/@oclif/plugin-plugins/lib/npm.js
|
|
@@ -507,8 +507,11 @@ var Plugins = class {
|
|
|
507
507
|
const { dependencies } = await this.pjson();
|
|
508
508
|
const { default: npa } = await import("./npa-MHEAM5QF.js");
|
|
509
509
|
const normalizedUrl = npa(url);
|
|
510
|
-
const matches = Object.entries(dependencies ?? {}).find(([,
|
|
511
|
-
const normalized = npa(
|
|
510
|
+
const matches = Object.entries(dependencies ?? {}).find(([, npmVersion]) => {
|
|
511
|
+
const normalized = npa(npmVersion);
|
|
512
|
+
if (normalized.type === "file" && normalized.raw) {
|
|
513
|
+
return parse(url).base === parse(normalized.raw).base;
|
|
514
|
+
}
|
|
512
515
|
return normalized.hosted?.type === normalizedUrl.hosted?.type && normalized.hosted?.user === normalizedUrl.hosted?.user && normalized.hosted?.project === normalizedUrl.hosted?.project;
|
|
513
516
|
});
|
|
514
517
|
const installedPluginName = matches?.[0];
|
|
@@ -530,7 +533,7 @@ var Plugins = class {
|
|
|
530
533
|
const results = Object.fromEntries(await Promise.all(files?.map(async (f) => [f, await fileExists(f)]) ?? []));
|
|
531
534
|
this.debug(results);
|
|
532
535
|
if (!Object.values(results).every(Boolean)) {
|
|
533
|
-
import_core4.ux.warn(`This plugin
|
|
536
|
+
import_core4.ux.warn(`This plugin may not work as expected because the prepare script did not produce all the expected files.`);
|
|
534
537
|
}
|
|
535
538
|
} else {
|
|
536
539
|
const range = (0, import_semver.validRange)(tag);
|
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.82",
|
|
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.39",
|
|
16
16
|
"@oclif/plugin-test-esm-1": "^0.8.73"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"@types/mocha": "^10",
|
|
24
24
|
"@types/node": "^18",
|
|
25
25
|
"chai": "^4",
|
|
26
|
-
"esbuild": "^0.25.
|
|
27
|
-
"eslint": "^9.
|
|
28
|
-
"eslint-config-oclif": "^6.0.
|
|
26
|
+
"esbuild": "^0.25.5",
|
|
27
|
+
"eslint": "^9.28.0",
|
|
28
|
+
"eslint-config-oclif": "^6.0.62",
|
|
29
29
|
"eslint-config-prettier": "^10.1.5",
|
|
30
30
|
"mocha": "^10",
|
|
31
|
-
"oclif": "^4.
|
|
31
|
+
"oclif": "^4.18.0",
|
|
32
32
|
"shx": "^0.4.0",
|
|
33
33
|
"ts-node": "^10.9.2",
|
|
34
34
|
"typescript": "^5"
|