@divergeai/cli 0.1.7 → 0.1.8
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/dist/diverge.mjs +3 -2
- package/package.json +1 -1
package/dist/diverge.mjs
CHANGED
|
@@ -7387,7 +7387,7 @@ import path10 from "node:path";
|
|
|
7387
7387
|
import { parseArgs } from "node:util";
|
|
7388
7388
|
|
|
7389
7389
|
// src/version.ts
|
|
7390
|
-
var VERSION = true ? "0.1.
|
|
7390
|
+
var VERSION = true ? "0.1.8" : "dev";
|
|
7391
7391
|
var USER_AGENT = `diverge/${VERSION}`;
|
|
7392
7392
|
|
|
7393
7393
|
// src/http.ts
|
|
@@ -8041,7 +8041,8 @@ import fs4 from "node:fs";
|
|
|
8041
8041
|
import path7 from "node:path";
|
|
8042
8042
|
function findOnPath(name, env = process.env, platform = process.platform) {
|
|
8043
8043
|
const dirs = (env.PATH ?? "").split(path7.delimiter).filter(Boolean);
|
|
8044
|
-
const
|
|
8044
|
+
const extensions = (env.PATHEXT || ".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean);
|
|
8045
|
+
const candidates = platform === "win32" ? extensions.map((extension) => `${name}${extension.toLowerCase()}`) : [name];
|
|
8045
8046
|
for (const dir of dirs) {
|
|
8046
8047
|
for (const candidate of candidates) {
|
|
8047
8048
|
const full = path7.join(dir, candidate);
|