Skip to content

Commit 196e133

Browse files
committed
Add default port for REPL
1 parent 3784a1b commit 196e133

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bin/replClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ const main = () => {
44
const { argv } = process;
55

66
let host = "127.0.0.1";
7-
let port;
7+
let port = 2580;
88

99
if (argv.length === 4) {
1010
host = argv[2];
11-
port = argv[3];
11+
port = Number(argv[3]);
1212
} else if (argv.length === 3) {
13-
port = argv[2];
13+
port = Number(argv[2]);
1414
} else {
1515
throw new Error("The command is supposed to be used as: yarn remote [server address] [REPL port]");
1616
}

0 commit comments

Comments
 (0)