From 9fc2e496ca13a9c1651a2f21f2246f813fc608f1 Mon Sep 17 00:00:00 2001 From: jeshecdom Date: Thu, 9 Jan 2025 18:33:46 +0100 Subject: [PATCH] Fixed printed output of CLI command for evaluating expressions. --- bin/tact.js | 2 +- src/node.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tact.js b/bin/tact.js index 148e68c1e..8733ca01c 100755 --- a/bin/tact.js +++ b/bin/tact.js @@ -106,7 +106,7 @@ void meowModule.then( switch (result.kind) { case "ok": { - console.log(result.value); + console.log(main.showValue(result.value)); process.exit(0); } break; diff --git a/src/node.ts b/src/node.ts index 170330913..4b2c1e50b 100644 --- a/src/node.ts +++ b/src/node.ts @@ -144,3 +144,5 @@ export async function run(args: { export { createNodeFileSystem } from "./vfs/createNodeFileSystem"; export { parseAndEvalExpression } from "./interpreter"; + +export { showValue } from "./types/types";