@oclif/plugin-test-esbuild 0.5.83 → 0.5.85

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.83 linux-x64 node-v22.15.0
20
+ @oclif/plugin-test-esbuild/0.5.85 linux-x64 node-v22.16.0
21
21
  $ bundle --help [COMMAND]
22
22
  USAGE
23
23
  $ bundle COMMAND
@@ -254,7 +254,7 @@ var require_package = __commonJS({
254
254
  module.exports = {
255
255
  name: "@oclif/core",
256
256
  description: "base library for oclif CLIs",
257
- version: "4.3.2",
257
+ version: "4.4.0",
258
258
  author: "Salesforce",
259
259
  bugs: "https://github.com/oclif/core/issues",
260
260
  dependencies: {
@@ -272,14 +272,14 @@ var require_package = __commonJS({
272
272
  semver: "^7.6.3",
273
273
  "string-width": "^4.2.3",
274
274
  "supports-color": "^8",
275
- tinyglobby: "^0.2.13",
275
+ tinyglobby: "^0.2.14",
276
276
  "widest-line": "^3.1.0",
277
277
  wordwrap: "^1.0.0",
278
278
  "wrap-ansi": "^7.0.0"
279
279
  },
280
280
  devDependencies: {
281
281
  "@commitlint/config-conventional": "^19",
282
- "@eslint/compat": "^1.2.8",
282
+ "@eslint/compat": "^1.3.0",
283
283
  "@oclif/plugin-help": "^6",
284
284
  "@oclif/plugin-plugins": "^5",
285
285
  "@oclif/prettier-config": "^0.2.1",
@@ -221649,8 +221649,7 @@ var require_dist = __commonJS({
221649
221649
 
221650
221650
  // node_modules/tinyglobby/dist/index.js
221651
221651
  var require_dist2 = __commonJS({
221652
- "node_modules/tinyglobby/dist/index.js"(exports, module) {
221653
- "use strict";
221652
+ "node_modules/tinyglobby/dist/index.js"(exports) {
221654
221653
  init_cjs_shims();
221655
221654
  var __create = Object.create;
221656
221655
  var __defProp = Object.defineProperty;
@@ -221658,40 +221657,23 @@ var require_dist2 = __commonJS({
221658
221657
  var __getOwnPropNames = Object.getOwnPropertyNames;
221659
221658
  var __getProtoOf = Object.getPrototypeOf;
221660
221659
  var __hasOwnProp = Object.prototype.hasOwnProperty;
221661
- var __export = (target, all) => {
221662
- for (var name in all)
221663
- __defProp(target, name, { get: all[name], enumerable: true });
221664
- };
221665
221660
  var __copyProps = (to, from, except, desc) => {
221666
- if (from && typeof from === "object" || typeof from === "function") {
221667
- for (let key of __getOwnPropNames(from))
221668
- if (!__hasOwnProp.call(to, key) && key !== except)
221669
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
221661
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
221662
+ key = keys[i];
221663
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
221664
+ get: ((k) => from[k]).bind(null, key),
221665
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
221666
+ });
221670
221667
  }
221671
221668
  return to;
221672
221669
  };
221673
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
221674
- // If the importer is in node compatibility mode or this is not an ESM
221675
- // file that has been converted to a CommonJS file using a Babel-
221676
- // compatible transform (i.e. "__esModule" has not been set), then set
221677
- // "default" to the CommonJS "module.exports" for node compatibility.
221678
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
221679
- mod
221680
- ));
221681
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
221682
- var index_exports = {};
221683
- __export(index_exports, {
221684
- convertPathToPattern: () => convertPathToPattern,
221685
- escapePath: () => escapePath,
221686
- glob: () => glob,
221687
- globSync: () => globSync,
221688
- isDynamicPattern: () => isDynamicPattern
221689
- });
221690
- module.exports = __toCommonJS(index_exports);
221691
- var import_node_path = __toESM(__require("path"));
221692
- var import_fdir = require_dist();
221693
- var import_picomatch2 = __toESM(require_picomatch2());
221694
- var import_picomatch = __toESM(require_picomatch2());
221670
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
221671
+ value: mod,
221672
+ enumerable: true
221673
+ }) : target, mod));
221674
+ var path = __toESM(__require("path"));
221675
+ var fdir = __toESM(require_dist());
221676
+ var picomatch = __toESM(require_picomatch2());
221695
221677
  var ONLY_PARENT_DIRECTORIES = /^(\/?\.\.)+$/;
221696
221678
  function getPartialMatcher(patterns, options) {
221697
221679
  const patternsCount = patterns.length;
@@ -221702,16 +221684,12 @@ var require_dist2 = __commonJS({
221702
221684
  patternsParts[i] = parts;
221703
221685
  const partsCount = parts.length;
221704
221686
  const partRegexes = Array(partsCount);
221705
- for (let j = 0; j < partsCount; j++) {
221706
- partRegexes[j] = import_picomatch.default.makeRe(parts[j], options);
221707
- }
221687
+ for (let j = 0; j < partsCount; j++) partRegexes[j] = picomatch.default.makeRe(parts[j], options);
221708
221688
  regexes[i] = partRegexes;
221709
221689
  }
221710
221690
  return (input) => {
221711
221691
  const inputParts = input.split("/");
221712
- if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) {
221713
- return true;
221714
- }
221692
+ if (inputParts[0] === ".." && ONLY_PARENT_DIRECTORIES.test(input)) return true;
221715
221693
  for (let i = 0; i < patterns.length; i++) {
221716
221694
  const patternParts = patternsParts[i];
221717
221695
  const regex = regexes[i];
@@ -221720,50 +221698,40 @@ var require_dist2 = __commonJS({
221720
221698
  let j = 0;
221721
221699
  while (j < minParts) {
221722
221700
  const part = patternParts[j];
221723
- if (part.includes("/")) {
221724
- return true;
221725
- }
221701
+ if (part.includes("/")) return true;
221726
221702
  const match = regex[j].test(inputParts[j]);
221727
- if (!match) {
221728
- break;
221729
- }
221730
- if (part === "**") {
221731
- return true;
221732
- }
221703
+ if (!match) break;
221704
+ if (part === "**") return true;
221733
221705
  j++;
221734
221706
  }
221735
- if (j === inputPatternCount) {
221736
- return true;
221737
- }
221707
+ if (j === inputPatternCount) return true;
221738
221708
  }
221739
221709
  return false;
221740
221710
  };
221741
221711
  }
221742
221712
  var splitPatternOptions = { parts: true };
221743
- function splitPattern(path2) {
221744
- var _a;
221745
- const result = import_picomatch.default.scan(path2, splitPatternOptions);
221746
- return ((_a = result.parts) == null ? void 0 : _a.length) ? result.parts : [path2];
221713
+ function splitPattern(path$2) {
221714
+ var _result$parts;
221715
+ const result = picomatch.default.scan(path$2, splitPatternOptions);
221716
+ return ((_result$parts = result.parts) === null || _result$parts === void 0 ? void 0 : _result$parts.length) ? result.parts : [path$2];
221747
221717
  }
221748
221718
  var isWin = process.platform === "win32";
221749
221719
  var ESCAPED_WIN32_BACKSLASHES = /\\(?![()[\]{}!+@])/g;
221750
- function convertPosixPathToPattern(path2) {
221751
- return escapePosixPath(path2);
221720
+ function convertPosixPathToPattern(path$2) {
221721
+ return escapePosixPath(path$2);
221752
221722
  }
221753
- function convertWin32PathToPattern(path2) {
221754
- return escapeWin32Path(path2).replace(ESCAPED_WIN32_BACKSLASHES, "/");
221723
+ function convertWin32PathToPattern(path$2) {
221724
+ return escapeWin32Path(path$2).replace(ESCAPED_WIN32_BACKSLASHES, "/");
221755
221725
  }
221756
221726
  var convertPathToPattern = isWin ? convertWin32PathToPattern : convertPosixPathToPattern;
221757
221727
  var POSIX_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g;
221758
221728
  var WIN32_UNESCAPED_GLOB_SYMBOLS = /(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g;
221759
- var escapePosixPath = (path2) => path2.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
221760
- var escapeWin32Path = (path2) => path2.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
221729
+ var escapePosixPath = (path$2) => path$2.replace(POSIX_UNESCAPED_GLOB_SYMBOLS, "\\$&");
221730
+ var escapeWin32Path = (path$2) => path$2.replace(WIN32_UNESCAPED_GLOB_SYMBOLS, "\\$&");
221761
221731
  var escapePath = isWin ? escapeWin32Path : escapePosixPath;
221762
221732
  function isDynamicPattern(pattern, options) {
221763
- if ((options == null ? void 0 : options.caseSensitiveMatch) === false) {
221764
- return true;
221765
- }
221766
- const scan = import_picomatch.default.scan(pattern);
221733
+ if ((options === null || options === void 0 ? void 0 : options.caseSensitiveMatch) === false) return true;
221734
+ const scan = picomatch.default.scan(pattern);
221767
221735
  return scan.isGlob || scan.negated;
221768
221736
  }
221769
221737
  function log(...tasks) {
@@ -221773,29 +221741,31 @@ var require_dist2 = __commonJS({
221773
221741
  var ESCAPING_BACKSLASHES = /\\(?=[()[\]{}!*+?@|])/g;
221774
221742
  var BACKSLASHES = /\\/g;
221775
221743
  function normalizePattern(pattern, expandDirectories, cwd, props, isIgnore) {
221776
- var _a;
221777
221744
  let result = pattern;
221778
- if (pattern.endsWith("/")) {
221779
- result = pattern.slice(0, -1);
221780
- }
221781
- if (!result.endsWith("*") && expandDirectories) {
221782
- result += "/**";
221783
- }
221784
- if (import_node_path.default.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) {
221785
- result = import_node_path.posix.relative(escapePath(cwd), result);
221786
- } else {
221787
- result = import_node_path.posix.normalize(result);
221788
- }
221745
+ if (pattern.endsWith("/")) result = pattern.slice(0, -1);
221746
+ if (!result.endsWith("*") && expandDirectories) result += "/**";
221747
+ const escapedCwd = escapePath(cwd);
221748
+ if (path.default.isAbsolute(result.replace(ESCAPING_BACKSLASHES, ""))) result = path.posix.relative(escapedCwd, result);
221749
+ else result = path.posix.normalize(result);
221789
221750
  const parentDirectoryMatch = PARENT_DIRECTORY.exec(result);
221790
- if (parentDirectoryMatch == null ? void 0 : parentDirectoryMatch[0]) {
221791
- const potentialRoot = import_node_path.posix.join(cwd, parentDirectoryMatch[0]);
221792
- if (props.root.length > potentialRoot.length) {
221751
+ const parts = splitPattern(result);
221752
+ if (parentDirectoryMatch === null || parentDirectoryMatch === void 0 ? void 0 : parentDirectoryMatch[0]) {
221753
+ const n = (parentDirectoryMatch[0].length + 1) / 3;
221754
+ let i = 0;
221755
+ const cwdParts = escapedCwd.split("/");
221756
+ while (i < n && parts[i + n] === cwdParts[cwdParts.length + i - n]) {
221757
+ result = result.slice(0, (n - i - 1) * 3) + result.slice((n - i) * 3 + parts[i + n].length + 1) || ".";
221758
+ i++;
221759
+ }
221760
+ const potentialRoot = path.posix.join(cwd, parentDirectoryMatch[0].slice(i * 3));
221761
+ if (!potentialRoot.startsWith(".") && props.root.length > potentialRoot.length) {
221793
221762
  props.root = potentialRoot;
221794
- props.depthOffset = -(parentDirectoryMatch[0].length + 1) / 3;
221763
+ props.depthOffset = -n + i;
221795
221764
  }
221796
- } else if (!isIgnore && props.depthOffset >= 0) {
221797
- const parts = splitPattern(result);
221798
- (_a = props.commonPath) != null ? _a : props.commonPath = parts;
221765
+ }
221766
+ if (!isIgnore && props.depthOffset >= 0) {
221767
+ var _props$commonPath;
221768
+ (_props$commonPath = props.commonPath) !== null && _props$commonPath !== void 0 || (props.commonPath = parts);
221799
221769
  const newCommonPath = [];
221800
221770
  const length = Math.min(props.commonPath.length, parts.length);
221801
221771
  for (let i = 0; i < length; i++) {
@@ -221804,75 +221774,54 @@ var require_dist2 = __commonJS({
221804
221774
  newCommonPath.pop();
221805
221775
  break;
221806
221776
  }
221807
- if (part !== props.commonPath[i] || isDynamicPattern(part) || i === parts.length - 1) {
221808
- break;
221809
- }
221777
+ if (part !== props.commonPath[i] || isDynamicPattern(part) || i === parts.length - 1) break;
221810
221778
  newCommonPath.push(part);
221811
221779
  }
221812
221780
  props.depthOffset = newCommonPath.length;
221813
221781
  props.commonPath = newCommonPath;
221814
- props.root = newCommonPath.length > 0 ? import_node_path.default.posix.join(cwd, ...newCommonPath) : cwd;
221782
+ props.root = newCommonPath.length > 0 ? path.default.posix.join(cwd, ...newCommonPath) : cwd;
221815
221783
  }
221816
221784
  return result;
221817
221785
  }
221818
221786
  function processPatterns({ patterns, ignore = [], expandDirectories = true }, cwd, props) {
221819
- if (typeof patterns === "string") {
221820
- patterns = [patterns];
221821
- } else if (!patterns) {
221822
- patterns = ["**/*"];
221823
- }
221824
- if (typeof ignore === "string") {
221825
- ignore = [ignore];
221826
- }
221787
+ if (typeof patterns === "string") patterns = [patterns];
221788
+ else if (!patterns) patterns = ["**/*"];
221789
+ if (typeof ignore === "string") ignore = [ignore];
221827
221790
  const matchPatterns = [];
221828
221791
  const ignorePatterns = [];
221829
221792
  for (const pattern of ignore) {
221830
- if (!pattern) {
221831
- continue;
221832
- }
221833
- if (pattern[0] !== "!" || pattern[1] === "(") {
221834
- ignorePatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, true));
221835
- }
221793
+ if (!pattern) continue;
221794
+ if (pattern[0] !== "!" || pattern[1] === "(") ignorePatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, true));
221836
221795
  }
221837
221796
  for (const pattern of patterns) {
221838
- if (!pattern) {
221839
- continue;
221840
- }
221841
- if (pattern[0] !== "!" || pattern[1] === "(") {
221842
- matchPatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, false));
221843
- } else if (pattern[1] !== "!" || pattern[2] === "(") {
221844
- ignorePatterns.push(normalizePattern(pattern.slice(1), expandDirectories, cwd, props, true));
221845
- }
221797
+ if (!pattern) continue;
221798
+ if (pattern[0] !== "!" || pattern[1] === "(") matchPatterns.push(normalizePattern(pattern, expandDirectories, cwd, props, false));
221799
+ else if (pattern[1] !== "!" || pattern[2] === "(") ignorePatterns.push(normalizePattern(pattern.slice(1), expandDirectories, cwd, props, true));
221846
221800
  }
221847
- return { match: matchPatterns, ignore: ignorePatterns };
221801
+ return {
221802
+ match: matchPatterns,
221803
+ ignore: ignorePatterns
221804
+ };
221848
221805
  }
221849
- function getRelativePath(path2, cwd, root) {
221850
- return import_node_path.posix.relative(cwd, `${root}/${path2}`) || ".";
221806
+ function getRelativePath(path$2, cwd, root) {
221807
+ return path.posix.relative(cwd, `${root}/${path$2}`) || ".";
221851
221808
  }
221852
- function processPath(path2, cwd, root, isDirectory, absolute) {
221853
- const relativePath = absolute ? path2.slice(root === "/" ? 1 : root.length + 1) || "." : path2;
221854
- if (root === cwd) {
221855
- return isDirectory && relativePath !== "." ? relativePath.slice(0, -1) : relativePath;
221856
- }
221809
+ function processPath(path$2, cwd, root, isDirectory, absolute) {
221810
+ const relativePath = absolute ? path$2.slice(root === "/" ? 1 : root.length + 1) || "." : path$2;
221811
+ if (root === cwd) return isDirectory && relativePath !== "." ? relativePath.slice(0, -1) : relativePath;
221857
221812
  return getRelativePath(relativePath, cwd, root);
221858
221813
  }
221859
221814
  function formatPaths(paths, cwd, root) {
221860
221815
  for (let i = paths.length - 1; i >= 0; i--) {
221861
- const path2 = paths[i];
221862
- paths[i] = getRelativePath(path2, cwd, root) + (!path2 || path2.endsWith("/") ? "/" : "");
221816
+ const path$2 = paths[i];
221817
+ paths[i] = getRelativePath(path$2, cwd, root) + (!path$2 || path$2.endsWith("/") ? "/" : "");
221863
221818
  }
221864
221819
  return paths;
221865
221820
  }
221866
221821
  function crawl(options, cwd, sync) {
221867
- if (process.env.TINYGLOBBY_DEBUG) {
221868
- options.debug = true;
221869
- }
221870
- if (options.debug) {
221871
- log("globbing with options:", options, "cwd:", cwd);
221872
- }
221873
- if (Array.isArray(options.patterns) && options.patterns.length === 0) {
221874
- return sync ? [] : Promise.resolve([]);
221875
- }
221822
+ if (process.env.TINYGLOBBY_DEBUG) options.debug = true;
221823
+ if (options.debug) log("globbing with options:", options, "cwd:", cwd);
221824
+ if (Array.isArray(options.patterns) && options.patterns.length === 0) return sync ? [] : Promise.resolve([]);
221876
221825
  const props = {
221877
221826
  root: cwd,
221878
221827
  commonPath: null,
@@ -221880,15 +221829,13 @@ var require_dist2 = __commonJS({
221880
221829
  };
221881
221830
  const processed = processPatterns(options, cwd, props);
221882
221831
  const nocase = options.caseSensitiveMatch === false;
221883
- if (options.debug) {
221884
- log("internal processing patterns:", processed);
221885
- }
221886
- const matcher = (0, import_picomatch2.default)(processed.match, {
221832
+ if (options.debug) log("internal processing patterns:", processed);
221833
+ const matcher = (0, picomatch.default)(processed.match, {
221887
221834
  dot: options.dot,
221888
221835
  nocase,
221889
221836
  ignore: processed.ignore
221890
221837
  });
221891
- const ignore = (0, import_picomatch2.default)(processed.ignore, {
221838
+ const ignore = (0, picomatch.default)(processed.ignore, {
221892
221839
  dot: options.dot,
221893
221840
  nocase
221894
221841
  });
@@ -221897,25 +221844,17 @@ var require_dist2 = __commonJS({
221897
221844
  nocase
221898
221845
  });
221899
221846
  const fdirOptions = {
221900
- // use relative paths in the matcher
221901
- filters: [
221902
- options.debug ? (p, isDirectory) => {
221903
- const path2 = processPath(p, cwd, props.root, isDirectory, options.absolute);
221904
- const matches = matcher(path2);
221905
- if (matches) {
221906
- log(`matched ${path2}`);
221907
- }
221908
- return matches;
221909
- } : (p, isDirectory) => matcher(processPath(p, cwd, props.root, isDirectory, options.absolute))
221910
- ],
221847
+ filters: [options.debug ? (p, isDirectory) => {
221848
+ const path$2 = processPath(p, cwd, props.root, isDirectory, options.absolute);
221849
+ const matches = matcher(path$2);
221850
+ if (matches) log(`matched ${path$2}`);
221851
+ return matches;
221852
+ } : (p, isDirectory) => matcher(processPath(p, cwd, props.root, isDirectory, options.absolute))],
221911
221853
  exclude: options.debug ? (_, p) => {
221912
221854
  const relativePath = processPath(p, cwd, props.root, true, true);
221913
221855
  const skipped = relativePath !== "." && !partialMatcher(relativePath) || ignore(relativePath);
221914
- if (skipped) {
221915
- log(`skipped ${p}`);
221916
- } else {
221917
- log(`crawling ${p}`);
221918
- }
221856
+ if (skipped) log(`skipped ${p}`);
221857
+ else log(`crawling ${p}`);
221919
221858
  return skipped;
221920
221859
  } : (_, p) => {
221921
221860
  const relativePath = processPath(p, cwd, props.root, true, true);
@@ -221925,9 +221864,7 @@ var require_dist2 = __commonJS({
221925
221864
  relativePaths: true,
221926
221865
  resolveSymlinks: true
221927
221866
  };
221928
- if (options.deep) {
221929
- fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
221930
- }
221867
+ if (options.deep !== void 0) fdirOptions.maxDepth = Math.round(options.deep - props.depthOffset);
221931
221868
  if (options.absolute) {
221932
221869
  fdirOptions.relativePaths = false;
221933
221870
  fdirOptions.resolvePaths = true;
@@ -221940,36 +221877,37 @@ var require_dist2 = __commonJS({
221940
221877
  if (options.onlyDirectories) {
221941
221878
  fdirOptions.excludeFiles = true;
221942
221879
  fdirOptions.includeDirs = true;
221943
- } else if (options.onlyFiles === false) {
221944
- fdirOptions.includeDirs = true;
221945
- }
221880
+ } else if (options.onlyFiles === false) fdirOptions.includeDirs = true;
221946
221881
  props.root = props.root.replace(BACKSLASHES, "");
221947
221882
  const root = props.root;
221948
- if (options.debug) {
221949
- log("internal properties:", props);
221950
- }
221951
- const api = new import_fdir.fdir(fdirOptions).crawl(root);
221952
- if (cwd === root || options.absolute) {
221953
- return sync ? api.sync() : api.withPromise();
221954
- }
221883
+ if (options.debug) log("internal properties:", props);
221884
+ const api = new fdir.fdir(fdirOptions).crawl(root);
221885
+ if (cwd === root || options.absolute) return sync ? api.sync() : api.withPromise();
221955
221886
  return sync ? formatPaths(api.sync(), cwd, root) : api.withPromise().then((paths) => formatPaths(paths, cwd, root));
221956
221887
  }
221957
221888
  async function glob(patternsOrOptions, options) {
221958
- if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
221959
- throw new Error("Cannot pass patterns as both an argument and an option");
221960
- }
221961
- const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
221962
- const cwd = opts.cwd ? import_node_path.default.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
221889
+ if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
221890
+ const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? {
221891
+ ...options,
221892
+ patterns: patternsOrOptions
221893
+ } : patternsOrOptions;
221894
+ const cwd = opts.cwd ? path.default.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
221963
221895
  return crawl(opts, cwd, false);
221964
221896
  }
221965
221897
  function globSync(patternsOrOptions, options) {
221966
- if (patternsOrOptions && (options == null ? void 0 : options.patterns)) {
221967
- throw new Error("Cannot pass patterns as both an argument and an option");
221968
- }
221969
- const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? { ...options, patterns: patternsOrOptions } : patternsOrOptions;
221970
- const cwd = opts.cwd ? import_node_path.default.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
221898
+ if (patternsOrOptions && (options === null || options === void 0 ? void 0 : options.patterns)) throw new Error("Cannot pass patterns as both an argument and an option");
221899
+ const opts = Array.isArray(patternsOrOptions) || typeof patternsOrOptions === "string" ? {
221900
+ ...options,
221901
+ patterns: patternsOrOptions
221902
+ } : patternsOrOptions;
221903
+ const cwd = opts.cwd ? path.default.resolve(opts.cwd).replace(BACKSLASHES, "/") : process.cwd().replace(BACKSLASHES, "/");
221971
221904
  return crawl(opts, cwd, true);
221972
221905
  }
221906
+ exports.convertPathToPattern = convertPathToPattern;
221907
+ exports.escapePath = escapePath;
221908
+ exports.glob = glob;
221909
+ exports.globSync = globSync;
221910
+ exports.isDynamicPattern = isDynamicPattern;
221973
221911
  }
221974
221912
  });
221975
221913
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_lib
3
- } from "./chunk-XT3FN4SH.js";
3
+ } from "./chunk-C7YMEHET.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-XT3FN4SH.js";
3
+ } from "./chunk-C7YMEHET.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-XT3FN4SH.js";
3
+ } from "./chunk-C7YMEHET.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-XT3FN4SH.js";
3
+ } from "./chunk-C7YMEHET.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-S2JIEMWN.js";
4
- import "../chunk-XT3FN4SH.js";
3
+ } from "../chunk-QXGNPCXX.js";
4
+ import "../chunk-C7YMEHET.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-VOFWRZVM.js";
4
- import "../../chunk-XT3FN4SH.js";
3
+ } from "../../chunk-ZEUYQI3H.js";
4
+ import "../../chunk-C7YMEHET.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-L4M2LE2W.js";
4
- import "../../chunk-XT3FN4SH.js";
3
+ } from "../../chunk-IHURMRVN.js";
4
+ import "../../chunk-C7YMEHET.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-44FVVCIP.js";
4
- import "../../chunk-XT3FN4SH.js";
3
+ } from "../../chunk-PLUCZA3E.js";
4
+ import "../../chunk-C7YMEHET.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-S2JIEMWN.js";
3
+ } from "./chunk-QXGNPCXX.js";
4
4
  import {
5
5
  Hello
6
- } from "./chunk-VOFWRZVM.js";
6
+ } from "./chunk-ZEUYQI3H.js";
7
7
  import {
8
8
  World
9
- } from "./chunk-L4M2LE2W.js";
9
+ } from "./chunk-IHURMRVN.js";
10
10
  import {
11
11
  init_default
12
- } from "./chunk-44FVVCIP.js";
12
+ } from "./chunk-PLUCZA3E.js";
13
13
  import {
14
14
  require_ansis,
15
15
  require_lib,
16
16
  require_src
17
- } from "./chunk-XT3FN4SH.js";
17
+ } from "./chunk-C7YMEHET.js";
18
18
  import {
19
19
  require_lib as require_lib2
20
20
  } from "./chunk-SO2G2ODZ.js";
@@ -475,5 +475,5 @@
475
475
  "enableJsonFlag": false
476
476
  }
477
477
  },
478
- "version": "0.5.83"
478
+ "version": "0.5.85"
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oclif/plugin-test-esbuild",
3
- "version": "0.5.83",
3
+ "version": "0.5.85",
4
4
  "description": "Bundled plugin for testing",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/oclif/plugin-test-esbuild/issues",
@@ -12,11 +12,11 @@
12
12
  },
13
13
  "dependencies": {
14
14
  "@oclif/core": "^4",
15
- "@oclif/plugin-plugins": "^5.4.39",
15
+ "@oclif/plugin-plugins": "^5.4.41",
16
16
  "@oclif/plugin-test-esm-1": "^0.8.73"
17
17
  },
18
18
  "devDependencies": {
19
- "@eslint/compat": "^1.2.9",
19
+ "@eslint/compat": "^1.3.0",
20
20
  "@oclif/prettier-config": "^0.2.1",
21
21
  "@oclif/test": "^4",
22
22
  "@types/chai": "^4",
@@ -24,11 +24,11 @@
24
24
  "@types/node": "^18",
25
25
  "chai": "^4",
26
26
  "esbuild": "^0.25.5",
27
- "eslint": "^9.28.0",
28
- "eslint-config-oclif": "^6.0.66",
27
+ "eslint": "^9.29.0",
28
+ "eslint-config-oclif": "^6.0.68",
29
29
  "eslint-config-prettier": "^10.1.5",
30
30
  "mocha": "^10",
31
- "oclif": "^4.18.0",
31
+ "oclif": "^4.18.1",
32
32
  "shx": "^0.4.0",
33
33
  "ts-node": "^10.9.2",
34
34
  "typescript": "^5"