Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
92 changes: 92 additions & 0 deletions packages.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,95 @@ in upstream
, "prelude"
, "unsafe-coerce"
]
with node-buffer.version = "v9.0.0"
with node-buffer.dependencies =
[ "arraybuffer-types"
, "effect"
, "maybe"
, "st"
, "unsafe-coerce"
, "nullable"
]
with node-streams.version = "v9.0.0"
with node-streams.dependencies =
[ "aff"
, "effect"
, "exceptions"
, "maybe"
, "node-buffer"
, "node-event-emitter"
, "nullable"
, "prelude"
, "unsafe-coerce"
]
with node-fs.version = "v9.1.0"
with node-fs.dependencies =
[ "datetime"
, "effect"
, "either"
, "enums"
, "exceptions"
, "functions"
, "integers"
, "js-date"
, "maybe"
, "node-buffer"
, "node-path"
, "node-streams"
, "nullable"
, "partial"
, "prelude"
, "strings"
, "unsafe-coerce"
]
with node-process.version = "v11.2.0"
with node-process.dependencies =
[ "effect"
, "foreign-object"
, "foreign"
, "maybe"
, "node-event-emitter"
, "node-streams"
, "posix-types"
, "prelude"
, "unsafe-coerce"
]
with node-child-process.version = "v11.0.0"
with node-child-process.dependencies =
[ "exceptions"
, "node-event-emitter"
, "foreign"
, "foreign-object"
, "functions"
, "node-fs"
, "node-streams"
, "node-os"
, "nullable"
, "posix-types"
, "unsafe-coerce"
]
with node-os =
{ dependencies =
[ "arrays"
, "bifunctors"
, "console"
, "control"
, "datetime"
, "effect"
, "either"
, "exceptions"
, "foldable-traversable"
, "foreign"
, "foreign-object"
, "functions"
, "maybe"
, "node-buffer"
, "nullable"
, "partial"
, "posix-types"
, "prelude"
, "unsafe-coerce"
]
, repo = "https://github.com/purescript-node/purescript-node-os.git"
, version = "v5.1.0"
}
4 changes: 2 additions & 2 deletions spago.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@
, "either"
, "exceptions"
, "foldable-traversable"
, "foreign"
, "foreign-object"
, "functions"
, "integers"
, "js-timers"
, "maybe"
, "node-buffer"
, "node-child-process"
, "node-event-emitter"
, "node-fs"
, "node-human-signals"
, "node-os"
, "node-path"
, "node-process"
, "node-streams"
Expand All @@ -34,7 +35,6 @@
, "safe-coerce"
, "strings"
, "tailrec"
, "transformers"
, "tuples"
, "unsafe-coerce"
, "unsafe-reference"
Expand Down
85 changes: 0 additions & 85 deletions src/Node/Library/Execa.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
// Unless otherwise stated, FFI here is
// for child process-related things
import { Readable } from "node:stream";

export {
spawn as spawnImpl,
spawnSync as spawnSyncImpl
} from "node:child_process";

// For execa-specifically.
export function monkeyPatchKill(cp, killFn) {
cp.kill = killFn.bind(null, cp.kill.bind(cp))
}
Expand All @@ -21,81 +11,6 @@ export function setTimeoutImpl(timeout, cb) {
return t.unref ? t : { unref: () => {} };
}

export function channelImpl(cp) {
return cp.channel;
}

export function connectedImpl(cp) {
return cp.connected;
}

export function disconnectImpl(cp) {
return cp.disconnect();
}

export function exitCodeImpl(cp) {
return cp.exitCode;
}

export function killImpl(cp, signal, options) {
return cp.kill(signal, options);
}

export function pidExistsImpl(cp) {
return cp.kill(0);
}

export function killedImpl(cp) {
return cp.killed;
}

export function pidImpl(cp) {
return cp.pid;
}

export function refImpl(cp) {
return cp.ref();
}

export function unrefImpl(cp) {
return cp.unref();
}

export function sendImpl(cp, msg, handle, options, cb) {
return cp.send(msg, handle, options, cb);
}

export function signalCodeImpl(cp) {
return cp.signalCode;
}

export function spawnArgs(cp) {
return cp.spawnArgs;
}

export function spawnFile(cp) {
return cp.spawnFile;
}

export function stderr(cp) {
return cp.stderr;
}

export function stdin(cp) {
return cp.stdin;
}

export function stdioImpl(cp) {
return cp.stdio;
}

export function stdout(cp) {
return cp.stdout;
}

const _undefined = undefined;
export { _undefined as undefined };

export function bufferToReadStream(buf) {
return Readable.from(buf);
}
Loading