docks-kit 0.1.2 → 0.1.3
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.
|
@@ -288,6 +288,15 @@ export function effectSolutionsInstall(ctx: Ctx): (mode: "install" | "upgrade",
|
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
const gbin = capture(bun, ["pm", "-g", "bin"])
|
|
291
|
+
// win32: bun writes an .exe shim (not the bare Unix name), and the
|
|
292
|
+
// ~/.local/bin link step below is Unix-only plumbing (non-interactive
|
|
293
|
+
// agent PATH) — bun's global bin is already the Windows PATH entry.
|
|
294
|
+
if (process.platform === "win32") {
|
|
295
|
+
const found = gbin !== "" && ["exe", "cmd", "bunx"].some((ext) => existsSync(p(gbin, `effect-solutions.${ext}`)))
|
|
296
|
+
if (found) log(`effect-solutions CLI ready (${gbin})`)
|
|
297
|
+
else warn(`effect-solutions installed but no shim found under '${gbin !== "" ? gbin : "<unknown>"}' — check bun pm -g bin`)
|
|
298
|
+
return 0
|
|
299
|
+
}
|
|
291
300
|
if (gbin !== "" && isExecutable(p(gbin, "effect-solutions"))) {
|
|
292
301
|
mkdirSync(p(ctx.home, ".local", "bin"), { recursive: true })
|
|
293
302
|
linkOrCopy(bun, p(ctx.home, ".local", "bin", "bun"))
|
package/package.json
CHANGED