Skip to content

Commit c0d215a

Browse files
committed
fixup Bun dependency in logs script
1 parent 57523c8 commit c0d215a

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nvim-node",
33
"author": "dlants",
44
"type": "module",
5-
"version": "0.0.1",
5+
"version": "0.0.2",
66
"license": "MIT",
77
"description": "minimalist neovim client for node",
88
"repository": {

src/cli/index.ts

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#!/usr/bin/env node --import @swc-node/register/esm-register script.ts
21
import { program } from "commander";
2+
import { spawn } from "node:child_process";
33
import { version } from "../../package.json";
44

55
program.name("nvim-node").description("CLI to work with neovim's node client").version(version);
@@ -9,10 +9,8 @@ program
99
.description("print nvim-node client logs")
1010
.argument("<client_name>", "Client name you specify in your attach call.")
1111
.action((name) => {
12-
Bun.spawn({
13-
cmd: ["tail", "-F", "-n", "0", `/tmp/${name}.node.logs`],
14-
stdin: null,
15-
stdout: "inherit",
12+
spawn("tail", ["-F", "-n", "0", `/tmp/${name}.node.logs`], {
13+
stdio: ["ignore", "inherit", "inherit"],
1614
});
1715
})
1816
.exitOverride(() => process.exit(0));

0 commit comments

Comments
 (0)