Upgrade typescript
Client: nodejs
Patch: Cameron Martin
Typescript was on a really old version, and upgrading this is necessary for future changes. Upgrading this required upgrading `@types/node` and `commander`, since the old versions of these are not compatible with the newer version of typescript.
This closes #3084
diff --git a/lib/nodejs/test/episodic-code-generation-test/server.js b/lib/nodejs/test/episodic-code-generation-test/server.js
index feca380..2b9a96d 100644
--- a/lib/nodejs/test/episodic-code-generation-test/server.js
+++ b/lib/nodejs/test/episodic-code-generation-test/server.js
@@ -20,7 +20,7 @@
*/
const thrift = require("../../lib/thrift");
-const program = require("commander");
+const { program } = require("commander");
program
.option("--port <port>", "Set the thrift server port", 9090)
@@ -29,7 +29,8 @@
const Service = require("./gen-2/second-episode/gen-nodejs/Service");
const Types = require("types-package/first-episode/Types_types");
-const port = program.port;
+const opts = program.opts();
+const port = opts.port;
const options = {
transport: thrift.TBufferedTransport,