Skip to content

Commit 9b08306

Browse files
committed
Merge branch 'shaw/move-code-to-plugins' of https://github.com/ai16z/eliza into shaw/move-code-to-plugins
2 parents bbac29e + 49e6bf6 commit 9b08306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/core/src/settings.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import path from "path";
88
* @param {string} [startDir=process.cwd()] - Starting directory for the search
99
* @returns {string|null} Path to the nearest .env file or null if not found
1010
*/
11-
function findNearestEnvFile(startDir = process.cwd()) {
11+
export function findNearestEnvFile(startDir = process.cwd()) {
1212
let currentDir = startDir;
1313

1414
// Continue searching until we reach the root directory
@@ -33,7 +33,7 @@ function findNearestEnvFile(startDir = process.cwd()) {
3333
* @returns {Object} Environment variables object
3434
* @throws {Error} If no .env file is found
3535
*/
36-
function loadEnvConfig() {
36+
export function loadEnvConfig() {
3737
const envPath = findNearestEnvFile();
3838

3939
if (!envPath) {

0 commit comments

Comments
 (0)