@oclif/plugin-test-esbuild 0.5.64 → 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.
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-7XDOOSFZ.js";
4
- import "../chunk-SJ2X2LSZ.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-QW6QPN74.js";
4
- import "../../chunk-SJ2X2LSZ.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-TCTBIIZ6.js";
4
- import "../../chunk-SJ2X2LSZ.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-G5LLDGQV.js";
4
- import "../../chunk-SJ2X2LSZ.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-7XDOOSFZ.js";
3
+ } from "./chunk-JACUNZEU.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-QW6QPN74.js";
6
+ } from "./chunk-QONGPQ2N.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-TCTBIIZ6.js";
9
+ } from "./chunk-APHIOKHB.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-G5LLDGQV.js";
12
+ } from "./chunk-5PUU2YWS.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-SJ2X2LSZ.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.64"
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.64",
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,10 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-test-esm-1": "^0.8.56",
16
- "@oclif/plugin-plugins": "^5.4.26"
15
+ "@oclif/plugin-plugins": "^5.4.29",
16
+ "@oclif/plugin-test-esm-1": "^0.8.56"
17
17
  },
18
18
  "devDependencies": {
19
+ "@eslint/compat": "^1.2.5",
19
20
  "@oclif/prettier-config": "^0.2.1",
20
21
  "@oclif/test": "^4",
21
22
  "@types/chai": "^4",
@@ -23,10 +24,9 @@
23
24
  "@types/node": "^18",
24
25
  "chai": "^4",
25
26
  "esbuild": "^0.24.2",
26
- "eslint": "^8.57.1",
27
- "eslint-config-oclif": "^5",
28
- "eslint-config-oclif-typescript": "^3",
29
- "eslint-config-prettier": "^9.1.0",
27
+ "eslint": "^9.19.0",
28
+ "eslint-config-oclif": "^6.0.0",
29
+ "eslint-config-prettier": "^10.0.1",
30
30
  "mocha": "^10",
31
31
  "oclif": "^4.17.17",
32
32
  "shx": "^0.3.4",
@@ -37,7 +37,7 @@
37
37
  "node": ">=18.0.0"
38
38
  },
39
39
  "files": [
40
- "/bin/run.js",
40
+ "bin/run.js",
41
41
  "/dist",
42
42
  "/oclif.manifest.json"
43
43
  ],
@@ -78,7 +78,7 @@
78
78
  "repository": "oclif/plugin-test-esbuild",
79
79
  "scripts": {
80
80
  "build": "shx rm -rf dist && node bin/bundle.js",
81
- "lint": "eslint . --ext .ts",
81
+ "lint": "eslint",
82
82
  "postpack": "shx rm -f oclif.manifest.json",
83
83
  "posttest": "yarn lint",
84
84
  "prepack": "yarn build && oclif manifest && oclif readme",