@oclif/plugin-test-esbuild 0.5.65 → 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-YN2KEDRR.js → chunk-5PUU2YWS.js} +1 -1
- package/dist/{chunk-F5L74RH3.js → chunk-APHIOKHB.js} +1 -1
- package/dist/{chunk-NAYBUSHR.js → chunk-GDI7GCRT.js} +21 -8
- package/dist/{chunk-JD6KYVXB.js → chunk-JACUNZEU.js} +1 -1
- package/dist/{chunk-6D6KVKWN.js → chunk-QONGPQ2N.js} +1 -1
- package/dist/{chunk-QYBDSXKV.js → chunk-UT3X33W4.js} +1 -1
- 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 +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.66 linux-x64 node-v22.13.1
|
|
21
21
|
$ bundle --help [COMMAND]
|
|
22
22
|
USAGE
|
|
23
23
|
$ bundle COMMAND
|
|
@@ -318,6 +318,17 @@ var require_semver = __commonJS({
|
|
|
318
318
|
// preminor will bump the version up to the next minor release, and immediately
|
|
319
319
|
// down to pre-release. premajor and prepatch work the same way.
|
|
320
320
|
inc(release, identifier, identifierBase) {
|
|
321
|
+
if (release.startsWith("pre")) {
|
|
322
|
+
if (!identifier && identifierBase === false) {
|
|
323
|
+
throw new Error("invalid increment argument: identifier is empty");
|
|
324
|
+
}
|
|
325
|
+
if (identifier) {
|
|
326
|
+
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE]);
|
|
327
|
+
if (!match || match[1] !== identifier) {
|
|
328
|
+
throw new Error(`invalid identifier: ${identifier}`);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
321
332
|
switch (release) {
|
|
322
333
|
case "premajor":
|
|
323
334
|
this.prerelease.length = 0;
|
|
@@ -345,6 +356,12 @@ var require_semver = __commonJS({
|
|
|
345
356
|
}
|
|
346
357
|
this.inc("pre", identifier, identifierBase);
|
|
347
358
|
break;
|
|
359
|
+
case "release":
|
|
360
|
+
if (this.prerelease.length === 0) {
|
|
361
|
+
throw new Error(`version ${this.raw} is not a prerelease`);
|
|
362
|
+
}
|
|
363
|
+
this.prerelease.length = 0;
|
|
364
|
+
break;
|
|
348
365
|
case "major":
|
|
349
366
|
if (this.minor !== 0 || this.patch !== 0 || this.prerelease.length === 0) {
|
|
350
367
|
this.major++;
|
|
@@ -370,9 +387,6 @@ var require_semver = __commonJS({
|
|
|
370
387
|
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
|
|
371
388
|
case "pre": {
|
|
372
389
|
const base = Number(identifierBase) ? 1 : 0;
|
|
373
|
-
if (!identifier && identifierBase === false) {
|
|
374
|
-
throw new Error("invalid increment argument: identifier is empty");
|
|
375
|
-
}
|
|
376
390
|
if (this.prerelease.length === 0) {
|
|
377
391
|
this.prerelease = [base];
|
|
378
392
|
} else {
|
|
@@ -512,13 +526,12 @@ var require_diff = __commonJS({
|
|
|
512
526
|
if (!lowVersion.patch && !lowVersion.minor) {
|
|
513
527
|
return "major";
|
|
514
528
|
}
|
|
515
|
-
if (highVersion
|
|
529
|
+
if (lowVersion.compareMain(highVersion) === 0) {
|
|
530
|
+
if (lowVersion.minor && !lowVersion.patch) {
|
|
531
|
+
return "minor";
|
|
532
|
+
}
|
|
516
533
|
return "patch";
|
|
517
534
|
}
|
|
518
|
-
if (highVersion.minor) {
|
|
519
|
-
return "minor";
|
|
520
|
-
}
|
|
521
|
-
return "major";
|
|
522
535
|
}
|
|
523
536
|
const prefix = highHasPre ? "pre" : "";
|
|
524
537
|
if (v1.major !== v2.major) {
|
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,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.29",
|
|
16
16
|
"@oclif/plugin-test-esm-1": "^0.8.56"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|