From 55e3585fc83f568afc281a9fac2c510924a14cdb Mon Sep 17 00:00:00 2001 From: Jeongho Nam Date: Fri, 24 Nov 2023 17:56:58 +0900 Subject: [PATCH] Exact benchmark program running --- packages/benchmark/package.json | 4 ++-- packages/benchmark/src/internal/BenchmarktReporter.ts | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/benchmark/package.json b/packages/benchmark/package.json index 42ea84271e..6c847f5a43 100644 --- a/packages/benchmark/package.json +++ b/packages/benchmark/package.json @@ -72,7 +72,7 @@ "source-map-support": "^0.5.21", "suppress-warnings": "^1.0.2", "tstl": "^2.5.13", - "typia": "D:\\github\\samchon\\typia\\typia-5.3.0-dev.20231122.tgz", - "uuid": "^9.0.1" + "uuid": "^9.0.1", + "typia": "D:\\github\\samchon\\typia\\typia-5.3.0-dev.20231122.tgz" } } \ No newline at end of file diff --git a/packages/benchmark/src/internal/BenchmarktReporter.ts b/packages/benchmark/src/internal/BenchmarktReporter.ts index 5124cd4ca4..19a5fe1951 100644 --- a/packages/benchmark/src/internal/BenchmarktReporter.ts +++ b/packages/benchmark/src/internal/BenchmarktReporter.ts @@ -134,9 +134,7 @@ export namespace BenchmarkReporter { async function get_package_version(): Promise { const content: string = await fs.promises.readFile( - EXTENSION === "ts" - ? __dirname + "/../../package.json" - : __dirname + "/../../../package.json", + __dirname + "/../../../../package.json", "utf8", ); const data: { version: string } = JSON.parse(content);