@forwardimpact/libeval 0.1.33 → 0.1.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/fit-benchmark.js +2 -2
- package/package.json +1 -1
package/bin/fit-benchmark.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { readFileSync } from "node:fs";
|
|
3
|
+
import { readFileSync, realpathSync } from "node:fs";
|
|
4
4
|
import { createCli } from "@forwardimpact/libcli";
|
|
5
5
|
import { createLogger } from "@forwardimpact/libtelemetry";
|
|
6
6
|
|
|
@@ -158,7 +158,7 @@ async function main() {
|
|
|
158
158
|
|
|
159
159
|
// Run main only when invoked as a CLI. Importing for tests (e.g. parity)
|
|
160
160
|
// should not execute the entry point.
|
|
161
|
-
if (import.meta.url === `file://${process.argv[1]}`) {
|
|
161
|
+
if (import.meta.url === `file://${realpathSync(process.argv[1])}`) {
|
|
162
162
|
main().catch((error) => {
|
|
163
163
|
logger.exception("main", error);
|
|
164
164
|
cli.error(error.message);
|