Skip to content

Commit

Permalink
Avoid Deno namespace in help.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
wojpawlik committed Aug 11, 2023
1 parent d5ad0db commit 3bdf368
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/help.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { isatty } from "node:tty";

export function getHelpText(version: string) {
return `\
deno2node: Compile Deno code for Node - Version ${version}
Expand Down Expand Up @@ -26,7 +28,7 @@ You can learn about the compiler options at https://aka.ms/tsc
`;
}

const TTY = Deno.isatty(Deno.stdout.rid);
const TTY = isatty(1 /* stdout */);
function bold(text: string) {
return format(text, 1);
}
Expand Down

0 comments on commit 3bdf368

Please sign in to comment.