(filePath: string)
| 961 | } |
| 962 | |
| 963 | async function readEnvFileRecord(filePath: string): Promise<Record<string, string>> { |
| 964 | try { |
| 965 | const content = await fsp.readFile(filePath, 'utf8'); |
| 966 | return parseEnvText(content); |
| 967 | } catch { |
| 968 | return {}; |
| 969 | } |
| 970 | } |
| 971 | |
| 972 | async function loadEnvFileIntoProcessEnv(filePath: string): Promise<void> { |
| 973 | const record = await readEnvFileRecord(filePath); |
no test coverage detected