Skip to content

Commit db15510

Browse files
committed
Fmt
1 parent ccb7358 commit db15510

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/agent-evals/src/runner/index.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from "node:path";
2+
import os from "node:os";
23
import { randomBytes } from "node:crypto";
34
import { mkdirSync, copyFileSync } from "node:fs";
45
import { AgentTestRunner } from "./agent-test-runner.js";
@@ -15,7 +16,7 @@ const dateName = new Date().toISOString().replace("T", "_").replace(/:/g, "-").r
1516

1617
const FIREBASE_CONFIG_FILENAME = "firebase-tools.json";
1718
const CONFIGSTORE_DIR = ".config/configstore";
18-
const HOME_CONFIGSTORE_DIR = path.resolve(path.join(process.env.HOME || "", CONFIGSTORE_DIR));
19+
const HOME_CONFIGSTORE_DIR = path.resolve(path.join(os.homedir(), CONFIGSTORE_DIR));
1920

2021
export async function setupEnvironment(): Promise<void> {
2122
await buildFirebaseCli();
@@ -87,7 +88,9 @@ function copyFirebaseCliConfigstore(fromDir: string, toDir: string) {
8788
} catch (e: any) {
8889
if (e.code === "ENOENT") {
8990
const sourceFile = path.join(fromDir, FIREBASE_CONFIG_FILENAME);
90-
console.warn(`Firebase CLI config file not found at ${sourceFile}. Skipping copy. If you want to use your local Firebase login, please log in with the Firebase CLI.`);
91+
console.warn(
92+
`Firebase CLI config file not found at ${sourceFile}. Skipping copy. If you want to use your local Firebase login, please log in with the Firebase CLI.`,
93+
);
9194
} else {
9295
throw e;
9396
}

0 commit comments

Comments
 (0)