(value: string)
| 316 | return `"${escaped}"`; |
| 317 | } |
| 318 | |
| 319 | function generateDevVars(keys: Map<string, string>): string { |
| 320 | const header = [ |
| 321 | '# Auto-generated by dev/local/env-sync.ts — do not edit manually', |
| 322 | '# Source: .env.local + .dev.vars.example annotations', |
| 323 | `# Generated: ${new Date().toISOString()}`, |
| 324 | '', |
| 325 | ].join('\n'); |
| 326 | |
| 327 | const lines: string[] = []; |
| 328 | for (const [key, value] of keys) { |
| 329 | lines.push(`${key}=${formatValue(value)}`); |