fix(npm): use latest entry points without install scripts

This commit is contained in:
morluto committed 2026-07-17 00:16:46 +00:00
1 parent 81ed68f67d
commit 34252f55e9
27 files changed
+333 -166

No files matched your search

+1 -1
View File
@@ -1,5 +1,4 @@
import { tmpdir } from "node:os";
import { spawn } from "node-pty";
export type ProcessCaptureCapability =
| { readonly available: true; readonly backend: "node-pty" }
@@ -13,6 +12,7 @@ export type ProcessCaptureCapability =
export const probeProcessCaptureCapability =
async (): Promise<ProcessCaptureCapability> => {
try {
const { spawn } = await import("@lydell/node-pty");
const terminal = spawn(
process.platform === "win32" ? "cmd.exe" : "/bin/sh",
process.platform === "win32" ? ["/c", "exit", "0"] : ["-c", "exit 0"],