quiet dotenv log message (#2239)
Co-authored-by: Scott Densmore <scottdensmore@mac.com>
This commit is contained in:
parent
2e20effb43
commit
ad7839ea4c
|
@ -4334,9 +4334,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/dotenv": {
|
"node_modules/dotenv": {
|
||||||
"version": "16.5.0",
|
"version": "16.6.1",
|
||||||
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.5.0.tgz",
|
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.6.1.tgz",
|
||||||
"integrity": "sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==",
|
"integrity": "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow==",
|
||||||
"license": "BSD-2-Clause",
|
"license": "BSD-2-Clause",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12"
|
"node": ">=12"
|
||||||
|
@ -11199,7 +11199,7 @@
|
||||||
"@types/update-notifier": "^6.0.8",
|
"@types/update-notifier": "^6.0.8",
|
||||||
"command-exists": "^1.2.9",
|
"command-exists": "^1.2.9",
|
||||||
"diff": "^7.0.0",
|
"diff": "^7.0.0",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.6.1",
|
||||||
"gaxios": "^6.1.1",
|
"gaxios": "^6.1.1",
|
||||||
"glob": "^10.4.1",
|
"glob": "^10.4.1",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
|
@ -11384,7 +11384,7 @@
|
||||||
"@types/glob": "^8.1.0",
|
"@types/glob": "^8.1.0",
|
||||||
"@types/html-to-text": "^9.0.4",
|
"@types/html-to-text": "^9.0.4",
|
||||||
"diff": "^7.0.0",
|
"diff": "^7.0.0",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.6.1",
|
||||||
"gaxios": "^6.1.1",
|
"gaxios": "^6.1.1",
|
||||||
"glob": "^10.4.5",
|
"glob": "^10.4.5",
|
||||||
"google-auth-library": "^9.11.0",
|
"google-auth-library": "^9.11.0",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"@types/update-notifier": "^6.0.8",
|
"@types/update-notifier": "^6.0.8",
|
||||||
"command-exists": "^1.2.9",
|
"command-exists": "^1.2.9",
|
||||||
"diff": "^7.0.0",
|
"diff": "^7.0.0",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.6.1",
|
||||||
"gaxios": "^6.1.1",
|
"gaxios": "^6.1.1",
|
||||||
"glob": "^10.4.1",
|
"glob": "^10.4.1",
|
||||||
"highlight.js": "^11.11.1",
|
"highlight.js": "^11.11.1",
|
||||||
|
|
|
@ -297,6 +297,6 @@ function findEnvFile(startDir: string): string | null {
|
||||||
export function loadEnvironment(): void {
|
export function loadEnvironment(): void {
|
||||||
const envFilePath = findEnvFile(process.cwd());
|
const envFilePath = findEnvFile(process.cwd());
|
||||||
if (envFilePath) {
|
if (envFilePath) {
|
||||||
dotenv.config({ path: envFilePath });
|
dotenv.config({ path: envFilePath, quiet: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"@types/glob": "^8.1.0",
|
"@types/glob": "^8.1.0",
|
||||||
"@types/html-to-text": "^9.0.4",
|
"@types/html-to-text": "^9.0.4",
|
||||||
"diff": "^7.0.0",
|
"diff": "^7.0.0",
|
||||||
"dotenv": "^16.4.7",
|
"dotenv": "^16.6.1",
|
||||||
"gaxios": "^6.1.1",
|
"gaxios": "^6.1.1",
|
||||||
"glob": "^10.4.5",
|
"glob": "^10.4.5",
|
||||||
"google-auth-library": "^9.11.0",
|
"google-auth-library": "^9.11.0",
|
||||||
|
|
|
@ -52,10 +52,10 @@ if (!geminiSandbox) {
|
||||||
const geminiEnv = join(currentDir, '.gemini', '.env');
|
const geminiEnv = join(currentDir, '.gemini', '.env');
|
||||||
const regularEnv = join(currentDir, '.env');
|
const regularEnv = join(currentDir, '.env');
|
||||||
if (existsSync(geminiEnv)) {
|
if (existsSync(geminiEnv)) {
|
||||||
dotenv.config({ path: geminiEnv });
|
dotenv.config({ path: geminiEnv, quiet: true });
|
||||||
break;
|
break;
|
||||||
} else if (existsSync(regularEnv)) {
|
} else if (existsSync(regularEnv)) {
|
||||||
dotenv.config({ path: regularEnv });
|
dotenv.config({ path: regularEnv, quiet: true });
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
currentDir = dirname(currentDir);
|
currentDir = dirname(currentDir);
|
||||||
|
|
Loading…
Reference in New Issue