@cnwenf/occ 2.1.258 → 2.1.259

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.
Files changed (2) hide show
  1. package/dist/cli.js +11 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -208988,7 +208988,17 @@ var init_ripgrep = __esm(() => {
208988
208988
  }
208989
208989
  const rgRoot = path13.resolve(__dirname3, "vendor", "ripgrep");
208990
208990
  const command4 = process.platform === "win32" ? path13.resolve(rgRoot, `${process.arch}-win32`, "rg.exe") : path13.resolve(rgRoot, `${process.arch}-${process.platform}`, "rg");
208991
- return { mode: "builtin", command: command4, args: [] };
208991
+ try {
208992
+ const fs9 = __require("fs");
208993
+ if (fs9.existsSync(command4)) {
208994
+ return { mode: "builtin", command: command4, args: [] };
208995
+ }
208996
+ } catch {}
208997
+ const { cmd: systemRg } = findExecutable2("rg", []);
208998
+ if (systemRg !== "rg") {
208999
+ return { mode: "system", command: "rg", args: [] };
209000
+ }
209001
+ return { mode: "system", command: "grep", args: ["-rn"] };
208992
209002
  });
208993
209003
  RipgrepTimeoutError = class RipgrepTimeoutError extends Error {
208994
209004
  partialResults;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cnwenf/occ",
3
- "version": "2.1.258",
3
+ "version": "2.1.259",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "bin": {