@akshxy/envgit 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/envfile.js +1 -4
package/package.json
CHANGED
package/src/envfile.js
CHANGED
|
@@ -442,13 +442,10 @@ export function writeEnvFile(filePath, vars, { envName, projectRoot } = {}) {
|
|
|
442
442
|
}
|
|
443
443
|
|
|
444
444
|
const grouped = groupAndSort(vars);
|
|
445
|
-
const maxKeyLen = Math.max(...entries.map(([k]) => k.length));
|
|
446
|
-
|
|
447
445
|
for (const [section, sectionVars] of grouped) {
|
|
448
446
|
lines.push(`# ── ${section} ${'─'.repeat(Math.max(0, 44 - section.length))}`);
|
|
449
447
|
for (const [k, v] of sectionVars) {
|
|
450
|
-
|
|
451
|
-
lines.push(`${k}${padding} = ${formatValue(v)}`);
|
|
448
|
+
lines.push(`${k}=${formatValue(v)}`);
|
|
452
449
|
}
|
|
453
450
|
lines.push('');
|
|
454
451
|
}
|