We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents bbac29e + 49e6bf6 commit 9b08306Copy full SHA for 9b08306
packages/core/src/settings.ts
@@ -8,7 +8,7 @@ import path from "path";
8
* @param {string} [startDir=process.cwd()] - Starting directory for the search
9
* @returns {string|null} Path to the nearest .env file or null if not found
10
*/
11
-function findNearestEnvFile(startDir = process.cwd()) {
+export function findNearestEnvFile(startDir = process.cwd()) {
12
let currentDir = startDir;
13
14
// Continue searching until we reach the root directory
@@ -33,7 +33,7 @@ function findNearestEnvFile(startDir = process.cwd()) {
33
* @returns {Object} Environment variables object
34
* @throws {Error} If no .env file is found
35
36
-function loadEnvConfig() {
+export function loadEnvConfig() {
37
const envPath = findNearestEnvFile();
38
39
if (!envPath) {
0 commit comments