@oclif/plugin-test-esbuild 0.5.8 → 0.5.9

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.8 linux-x64 node-v20.15.0
20
+ @oclif/plugin-test-esbuild/0.5.9 linux-x64 node-v20.15.0
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-XIO7H7LF.js";
3
+ } from "./chunk-OKCIOTHI.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-XIO7H7LF.js";
3
+ } from "./chunk-OKCIOTHI.js";
4
4
  import {
5
5
  __toESM,
6
6
  init_cjs_shims
@@ -121,7 +121,7 @@ var require_fs = __commonJS({
121
121
  "use strict";
122
122
  init_cjs_shims();
123
123
  Object.defineProperty(exports, "__esModule", { value: true });
124
- exports.existsSync = exports.safeReadJson = exports.readJsonSync = exports.readJson = exports.fileExists = exports.dirExists = void 0;
124
+ exports.existsSync = exports.safeReadJson = exports.readJson = exports.fileExists = exports.dirExists = void 0;
125
125
  var node_fs_1 = __require("node:fs");
126
126
  var promises_1 = __require("node:fs/promises");
127
127
  var util_1 = require_util();
@@ -160,8 +160,8 @@ var require_fs = __commonJS({
160
160
  }
161
161
  };
162
162
  var cache = new ProdOnlyCache();
163
- async function readJson(path) {
164
- if (cache.has(path)) {
163
+ async function readJson(path, useCache = true) {
164
+ if (useCache && cache.has(path)) {
165
165
  return JSON.parse(cache.get(path));
166
166
  }
167
167
  const contents = await (0, promises_1.readFile)(path, "utf8");
@@ -169,21 +169,9 @@ var require_fs = __commonJS({
169
169
  return JSON.parse(contents);
170
170
  }
171
171
  exports.readJson = readJson;
172
- function readJsonSync(path, parse = true) {
173
- if (cache.has(path)) {
174
- return JSON.parse(cache.get(path));
175
- }
176
- const contents = (0, node_fs_1.readFileSync)(path, "utf8");
177
- cache.set(path, contents);
178
- return parse ? JSON.parse(contents) : contents;
179
- }
180
- exports.readJsonSync = readJsonSync;
181
- async function safeReadJson(path) {
182
- if (cache.has(path)) {
183
- return JSON.parse(cache.get(path));
184
- }
172
+ async function safeReadJson(path, useCache = true) {
185
173
  try {
186
- return await readJson(path);
174
+ return await readJson(path, useCache);
187
175
  } catch {
188
176
  }
189
177
  }
@@ -222899,7 +222887,7 @@ var require_plugin_loader = __commonJS({
222899
222887
  try {
222900
222888
  const userPJSONPath = (0, node_path_1.join)(opts.dataDir, "package.json");
222901
222889
  debug("reading user plugins pjson %s", userPJSONPath);
222902
- const pjson = await (0, fs_1.readJson)(userPJSONPath);
222890
+ const pjson = await (0, fs_1.readJson)(userPJSONPath, false);
222903
222891
  if (!pjson.oclif)
222904
222892
  pjson.oclif = { schema: 1 };
222905
222893
  if (!pjson.oclif.plugins)
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-XIO7H7LF.js";
3
+ } from "./chunk-OKCIOTHI.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-XIO7H7LF.js";
3
+ } from "./chunk-OKCIOTHI.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-REOJZI2A.js";
4
- import "../chunk-XIO7H7LF.js";
3
+ } from "../chunk-UJLZ6PMM.js";
4
+ import "../chunk-OKCIOTHI.js";
5
5
  import "../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  ESBuild as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-VH3CK4HN.js";
4
- import "../../chunk-XIO7H7LF.js";
3
+ } from "../../chunk-NBJOJNTY.js";
4
+ import "../../chunk-OKCIOTHI.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  Hello as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-AR2COD6V.js";
4
- import "../../chunk-XIO7H7LF.js";
3
+ } from "../../chunk-Q2FBSKRG.js";
4
+ import "../../chunk-OKCIOTHI.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  World as default
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-SUYWPBFJ.js";
4
- import "../../chunk-XIO7H7LF.js";
3
+ } from "../../chunk-KQD6PEYG.js";
4
+ import "../../chunk-OKCIOTHI.js";
5
5
  import "../../chunk-RRP6KXWN.js";
6
6
  export {
7
7
  init_default as default
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-REOJZI2A.js";
3
+ } from "./chunk-UJLZ6PMM.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-VH3CK4HN.js";
6
+ } from "./chunk-NBJOJNTY.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-AR2COD6V.js";
9
+ } from "./chunk-Q2FBSKRG.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-SUYWPBFJ.js";
12
+ } from "./chunk-KQD6PEYG.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-XIO7H7LF.js";
17
+ } from "./chunk-OKCIOTHI.js";
18
18
  import {
19
19
  require_lib as require_lib2,
20
20
  require_semver
@@ -474,5 +474,5 @@
474
474
  "enableJsonFlag": false
475
475
  }
476
476
  },
477
- "version": "0.5.8"
477
+ "version": "0.5.9"
478
478
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.8",
3
+ "version": "0.5.9",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",