@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/envfile.js +1 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akshxy/envgit",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Encrypted per-project environment variable manager",
5
5
  "type": "module",
6
6
  "bin": {
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
- const padding = ' '.repeat(maxKeyLen - k.length);
451
- lines.push(`${k}${padding} = ${formatValue(v)}`);
448
+ lines.push(`${k}=${formatValue(v)}`);
452
449
  }
453
450
  lines.push('');
454
451
  }