@oclif/plugin-test-esbuild 0.4.0 → 0.4.1

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,10 +1,8 @@
1
- import {
2
- require_lib
3
- } from "./chunk-SP5LIBJJ.js";
4
1
  import {
5
2
  __toESM,
6
- init_cjs_shims
7
- } from "./chunk-CKYVUCCZ.js";
3
+ init_cjs_shims,
4
+ require_lib
5
+ } from "./chunk-NET6CTRU.js";
8
6
 
9
7
  // src/commands/hello/index.ts
10
8
  init_cjs_shims();
@@ -1,10 +1,8 @@
1
- import {
2
- require_lib
3
- } from "./chunk-SP5LIBJJ.js";
4
1
  import {
5
2
  __toESM,
6
- init_cjs_shims
7
- } from "./chunk-CKYVUCCZ.js";
3
+ init_cjs_shims,
4
+ require_lib
5
+ } from "./chunk-NET6CTRU.js";
8
6
 
9
7
  // src/commands/hello/world.ts
10
8
  init_cjs_shims();
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  ESBuild
3
- } from "../chunk-G3X4TLKI.js";
4
- import "../chunk-SP5LIBJJ.js";
5
- import "../chunk-CKYVUCCZ.js";
3
+ } from "../chunk-I2Y7BTZP.js";
4
+ import "../chunk-NET6CTRU.js";
6
5
  export {
7
6
  ESBuild as default
8
7
  };
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  Hello
3
- } from "../../chunk-OPAM43C4.js";
4
- import "../../chunk-SP5LIBJJ.js";
5
- import "../../chunk-CKYVUCCZ.js";
3
+ } from "../../chunk-T3WI7GAZ.js";
4
+ import "../../chunk-NET6CTRU.js";
6
5
  export {
7
6
  Hello as default
8
7
  };
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  World
3
- } from "../../chunk-UY7CILNM.js";
4
- import "../../chunk-SP5LIBJJ.js";
5
- import "../../chunk-CKYVUCCZ.js";
3
+ } from "../../chunk-YOJ7W5SK.js";
4
+ import "../../chunk-NET6CTRU.js";
6
5
  export {
7
6
  World as default
8
7
  };
@@ -1,8 +1,7 @@
1
1
  import {
2
2
  init_default
3
- } from "../../chunk-L5EKG6PO.js";
4
- import "../../chunk-SP5LIBJJ.js";
5
- import "../../chunk-CKYVUCCZ.js";
3
+ } from "../../chunk-6AQAVIMI.js";
4
+ import "../../chunk-NET6CTRU.js";
6
5
  export {
7
6
  init_default as default
8
7
  };
package/dist/index.js CHANGED
@@ -1,24 +1,22 @@
1
1
  import {
2
2
  ESBuild
3
- } from "./chunk-G3X4TLKI.js";
3
+ } from "./chunk-I2Y7BTZP.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-OPAM43C4.js";
6
+ } from "./chunk-T3WI7GAZ.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-UY7CILNM.js";
9
+ } from "./chunk-YOJ7W5SK.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-L5EKG6PO.js";
13
- import {
14
- require_lib,
15
- require_src
16
- } from "./chunk-SP5LIBJJ.js";
12
+ } from "./chunk-6AQAVIMI.js";
17
13
  import {
18
14
  __commonJS,
19
15
  __toESM,
20
- init_cjs_shims
21
- } from "./chunk-CKYVUCCZ.js";
16
+ init_cjs_shims,
17
+ require_lib,
18
+ require_src
19
+ } from "./chunk-NET6CTRU.js";
22
20
 
23
21
  // node_modules/semver/internal/constants.js
24
22
  var require_constants = __commonJS({
@@ -2737,7 +2735,7 @@ var isExecutable = (filepath) => {
2737
2735
  };
2738
2736
  async function findNode(root) {
2739
2737
  const cliBinDirs = [path.join(root, "bin"), path.join(root, "client", "bin")].filter((p) => fs.existsSync(p));
2740
- const { default: shelljs } = await import("./shell-FHVZNOYW.js");
2738
+ const { default: shelljs } = await import("shelljs");
2741
2739
  if (cliBinDirs.length > 0) {
2742
2740
  const node = shelljs.find(cliBinDirs).find((file) => isExecutable(file));
2743
2741
  if (node) {
@@ -3242,7 +3240,7 @@ Does your current user own the directory ${this.config.dataDir}?`
3242
3240
  const command = `"${nodeExecutable}" "${npmCli}" show ${name} dist-tags ${registryFlag}`;
3243
3241
  let npmShowResult;
3244
3242
  try {
3245
- const { default: shelljs } = await import("./shell-FHVZNOYW.js");
3243
+ const { default: shelljs } = await import("shelljs");
3246
3244
  npmShowResult = shelljs.exec(command, { silent: true });
3247
3245
  } catch {
3248
3246
  throw new import_core3.Errors.CLIError(`Could not run npm show for ${name}`);
@@ -467,5 +467,5 @@
467
467
  "enableJsonFlag": false
468
468
  }
469
469
  },
470
- "version": "0.4.0"
470
+ "version": "0.4.1"
471
471
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -1,63 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
- }) : x)(function(x) {
10
- if (typeof require !== "undefined")
11
- return require.apply(this, arguments);
12
- throw Error('Dynamic require of "' + x + '" is not supported');
13
- });
14
- var __glob = (map) => (path2) => {
15
- var fn = map[path2];
16
- if (fn)
17
- return fn();
18
- throw new Error("Module not found in bundle: " + path2);
19
- };
20
- var __esm = (fn, res) => function __init() {
21
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
22
- };
23
- var __commonJS = (cb, mod) => function __require2() {
24
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
25
- };
26
- var __copyProps = (to, from, except, desc) => {
27
- if (from && typeof from === "object" || typeof from === "function") {
28
- for (let key of __getOwnPropNames(from))
29
- if (!__hasOwnProp.call(to, key) && key !== except)
30
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
31
- }
32
- return to;
33
- };
34
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
- // If the importer is in node compatibility mode or this is not an ESM
36
- // file that has been converted to a CommonJS file using a Babel-
37
- // compatible transform (i.e. "__esModule" has not been set), then set
38
- // "default" to the CommonJS "module.exports" for node compatibility.
39
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
- mod
41
- ));
42
-
43
- // bin/cjs-shims.js
44
- import { createRequire } from "node:module";
45
- import path from "node:path";
46
- import url from "node:url";
47
- var init_cjs_shims = __esm({
48
- "bin/cjs-shims.js"() {
49
- "use strict";
50
- globalThis.require = createRequire(import.meta.url);
51
- globalThis.__filename = url.fileURLToPath(import.meta.url);
52
- globalThis.__dirname = path.dirname(__filename);
53
- }
54
- });
55
-
56
- export {
57
- __require,
58
- __glob,
59
- __esm,
60
- __commonJS,
61
- __toESM,
62
- init_cjs_shims
63
- };