@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 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.65 linux-x64 node-v22.13.1
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
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-QYBDSXKV.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-QYBDSXKV.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -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.patch) {
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) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-QYBDSXKV.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-QYBDSXKV.js";
3
+ } from "./chunk-UT3X33W4.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_semver
3
- } from "./chunk-NAYBUSHR.js";
3
+ } from "./chunk-GDI7GCRT.js";
4
4
  import {
5
5
  __commonJS,
6
6
  __require,
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-JD6KYVXB.js";
4
- import "../chunk-QYBDSXKV.js";
5
- import "../chunk-NAYBUSHR.js";
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-6D6KVKWN.js";
4
- import "../../chunk-QYBDSXKV.js";
5
- import "../../chunk-NAYBUSHR.js";
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-F5L74RH3.js";
4
- import "../../chunk-QYBDSXKV.js";
5
- import "../../chunk-NAYBUSHR.js";
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
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-YN2KEDRR.js";
4
- import "../../chunk-QYBDSXKV.js";
5
- import "../../chunk-NAYBUSHR.js";
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-JD6KYVXB.js";
3
+ } from "./chunk-JACUNZEU.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-6D6KVKWN.js";
6
+ } from "./chunk-QONGPQ2N.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-F5L74RH3.js";
9
+ } from "./chunk-APHIOKHB.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-YN2KEDRR.js";
12
+ } from "./chunk-5PUU2YWS.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-QYBDSXKV.js";
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-NAYBUSHR.js";
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-G53ZOHUR.js");
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(["oclif.manifest.json", "oclif.lock", "npm-shrinkwrap.json"]);
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({
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-SO2G2ODZ.js";
4
4
  import {
5
5
  require_semver
6
- } from "./chunk-NAYBUSHR.js";
6
+ } from "./chunk-GDI7GCRT.js";
7
7
  import {
8
8
  __commonJS,
9
9
  __require,
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.65"
478
+ "version": "0.5.66"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.65",
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.26",
15
+ "@oclif/plugin-plugins": "^5.4.29",
16
16
  "@oclif/plugin-test-esm-1": "^0.8.56"
17
17
  },
18
18
  "devDependencies": {