@oclif/plugin-test-esbuild 0.5.120 → 0.5.121

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-OMNPGPJT.js";
3
+ } from "./chunk-HRNB5OEJ.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-OMNPGPJT.js";
3
+ } from "./chunk-HRNB5OEJ.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-OMNPGPJT.js";
3
+ } from "./chunk-HRNB5OEJ.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-OMNPGPJT.js";
3
+ } from "./chunk-HRNB5OEJ.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-GUNNOKO7.js";
4
- import "../chunk-OMNPGPJT.js";
3
+ } from "../chunk-JD5FDRED.js";
4
+ import "../chunk-HRNB5OEJ.js";
5
5
  import "../chunk-YXPP4ZUR.js";
6
6
  import "../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-ONELJFFE.js";
4
- import "../../chunk-OMNPGPJT.js";
3
+ } from "../../chunk-MD35VLHN.js";
4
+ import "../../chunk-HRNB5OEJ.js";
5
5
  import "../../chunk-YXPP4ZUR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-TQ3XA2OA.js";
4
- import "../../chunk-OMNPGPJT.js";
3
+ } from "../../chunk-TAGCSGUB.js";
4
+ import "../../chunk-HRNB5OEJ.js";
5
5
  import "../../chunk-YXPP4ZUR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-4FIM6MQO.js";
4
- import "../../chunk-OMNPGPJT.js";
3
+ } from "../../chunk-USBUBGDZ.js";
4
+ import "../../chunk-HRNB5OEJ.js";
5
5
  import "../../chunk-YXPP4ZUR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-GUNNOKO7.js";
3
+ } from "./chunk-JD5FDRED.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-ONELJFFE.js";
6
+ } from "./chunk-MD35VLHN.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-TQ3XA2OA.js";
9
+ } from "./chunk-TAGCSGUB.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-4FIM6MQO.js";
12
+ } from "./chunk-USBUBGDZ.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-OMNPGPJT.js";
17
+ } from "./chunk-HRNB5OEJ.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -449,6 +449,16 @@ These warnings can only be addressed by the owner(s) of ${plugin.name}.`));
449
449
  }
450
450
  }
451
451
  }
452
+ function normaliseTag(jitPlugins, modifiedPlugins, p) {
453
+ if (!(0, import_semver.valid)(p.tag))
454
+ return `${p.name}@${p.tag}`;
455
+ if (p.tag && (0, import_semver.valid)(p.tag) && jitPlugins[p.name] && (0, import_semver.valid)(jitPlugins[p.name]) && (0, import_semver.gt)(p.tag, jitPlugins[p.name])) {
456
+ return `${p.name}@${p.tag}`;
457
+ }
458
+ const tag = jitPlugins[p.name] ?? p.tag;
459
+ modifiedPlugins.push({ ...p, tag });
460
+ return `${p.name}@${tag}`;
461
+ }
452
462
  var Plugins = class {
453
463
  config;
454
464
  npm;
@@ -687,16 +697,7 @@ Does your current user own the directory ${this.config.dataDir}?`
687
697
  const jitPlugins = this.config.pjson.oclif.jitPlugins ?? {};
688
698
  const modifiedPlugins = [];
689
699
  if (npmPlugins.length > 0) {
690
- await this.npm.install(npmPlugins.map((p) => {
691
- if (!(0, import_semver.valid)(p.tag))
692
- return `${p.name}@${p.tag}`;
693
- if (p.tag && (0, import_semver.valid)(p.tag) && jitPlugins[p.name] && (0, import_semver.gt)(p.tag, jitPlugins[p.name])) {
694
- return `${p.name}@${p.tag}`;
695
- }
696
- const tag = jitPlugins[p.name] ?? p.tag;
697
- modifiedPlugins.push({ ...p, tag });
698
- return `${p.name}@${tag}`;
699
- }), { cwd: this.config.dataDir, logLevel: this.logLevel, prod: true });
700
+ await this.npm.install(npmPlugins.map((p) => normaliseTag(jitPlugins, modifiedPlugins, p)), { cwd: this.config.dataDir, logLevel: this.logLevel, prod: true });
700
701
  }
701
702
  await this.add(...modifiedPlugins);
702
703
  }
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.120"
478
+ "version": "0.5.121"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.120",
3
+ "version": "0.5.121",
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.56",
15
+ "@oclif/plugin-plugins": "^5.4.59",
16
16
  "@oclif/plugin-test-esm-1": "^0.8.105"
17
17
  },
18
18
  "devDependencies": {
@@ -24,11 +24,11 @@
24
24
  "@types/node": "^18",
25
25
  "chai": "^4",
26
26
  "esbuild": "^0.27.3",
27
- "eslint": "^9.39.3",
28
- "eslint-config-oclif": "^6.0.140",
27
+ "eslint": "^9.39.4",
28
+ "eslint-config-oclif": "^6.0.151",
29
29
  "eslint-config-prettier": "^10.1.8",
30
30
  "mocha": "^10",
31
- "oclif": "^4.22.79",
31
+ "oclif": "^4.22.93",
32
32
  "shx": "^0.4.0",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"