@oclif/plugin-test-esbuild 0.5.81 → 0.5.83

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,7 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-QT6PE7R7.js";
4
- import "../chunk-UWWZQNJO.js";
3
+ } from "../chunk-S2JIEMWN.js";
4
+ import "../chunk-XT3FN4SH.js";
5
5
  import "../chunk-KTIWHTBR.js";
6
6
  import "../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-4YPJQZ6X.js";
4
- import "../../chunk-UWWZQNJO.js";
3
+ } from "../../chunk-VOFWRZVM.js";
4
+ import "../../chunk-XT3FN4SH.js";
5
5
  import "../../chunk-KTIWHTBR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-SHVSQ5R2.js";
4
- import "../../chunk-UWWZQNJO.js";
3
+ } from "../../chunk-L4M2LE2W.js";
4
+ import "../../chunk-XT3FN4SH.js";
5
5
  import "../../chunk-KTIWHTBR.js";
6
6
  import "../../chunk-RRP6KXWN.js";
7
7
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-OBQVAU5I.js";
4
- import "../../chunk-UWWZQNJO.js";
3
+ } from "../../chunk-44FVVCIP.js";
4
+ import "../../chunk-XT3FN4SH.js";
5
5
  import "../../chunk-KTIWHTBR.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-QT6PE7R7.js";
3
+ } from "./chunk-S2JIEMWN.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-4YPJQZ6X.js";
6
+ } from "./chunk-VOFWRZVM.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-SHVSQ5R2.js";
9
+ } from "./chunk-L4M2LE2W.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-OBQVAU5I.js";
12
+ } from "./chunk-44FVVCIP.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-UWWZQNJO.js";
17
+ } from "./chunk-XT3FN4SH.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -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(([, u]) => {
511
- const normalized = npa(u);
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 from github may not work as expected because the prepare script did not produce all the expected files.`);
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);
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.81"
478
+ "version": "0.5.83"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.81",
3
+ "version": "0.5.83",
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.38",
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.4",
27
- "eslint": "^9.27.0",
28
- "eslint-config-oclif": "^6.0.58",
26
+ "esbuild": "^0.25.5",
27
+ "eslint": "^9.28.0",
28
+ "eslint-config-oclif": "^6.0.66",
29
29
  "eslint-config-prettier": "^10.1.5",
30
30
  "mocha": "^10",
31
- "oclif": "^4.17.46",
31
+ "oclif": "^4.18.0",
32
32
  "shx": "^0.4.0",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"