@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 +1 -1
- package/dist/{chunk-SUYWPBFJ.js → chunk-KQD6PEYG.js} +1 -1
- package/dist/{chunk-VH3CK4HN.js → chunk-NBJOJNTY.js} +1 -1
- package/dist/{chunk-XIO7H7LF.js → chunk-OKCIOTHI.js} +6 -18
- package/dist/{chunk-AR2COD6V.js → chunk-Q2FBSKRG.js} +1 -1
- package/dist/{chunk-REOJZI2A.js → chunk-UJLZ6PMM.js} +1 -1
- package/dist/commands/esbuild.js +2 -2
- package/dist/commands/hello/index.js +2 -2
- package/dist/commands/hello/world.js +2 -2
- package/dist/hooks/init/init.js +2 -2
- package/dist/index.js +5 -5
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
@@ -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.
|
|
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
|
|
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)
|
package/dist/commands/esbuild.js
CHANGED
package/dist/hooks/init/init.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ESBuild
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UJLZ6PMM.js";
|
|
4
4
|
import {
|
|
5
5
|
Hello
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NBJOJNTY.js";
|
|
7
7
|
import {
|
|
8
8
|
World
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-Q2FBSKRG.js";
|
|
10
10
|
import {
|
|
11
11
|
init_default
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-KQD6PEYG.js";
|
|
13
13
|
import {
|
|
14
14
|
require_ansis,
|
|
15
15
|
require_lib,
|
|
16
16
|
require_src
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OKCIOTHI.js";
|
|
18
18
|
import {
|
|
19
19
|
require_lib as require_lib2,
|
|
20
20
|
require_semver
|
package/oclif.manifest.json
CHANGED