()
| 151 | } |
| 152 | |
| 153 | export const readEnvValues = (): Record<string, string> => { |
| 154 | const { parsed } = parseEnvFile() |
| 155 | const values: Record<string, string> = {} |
| 156 | |
| 157 | for (const line of parsed) { |
| 158 | values[line.key] = line.value |
| 159 | } |
| 160 | |
| 161 | return values |
| 162 | } |
| 163 | |
| 164 | export const upsertEnvValue = (key: string, value: string): void => { |
| 165 | const envPath = getEnvFilePath() |
no test coverage detected