Auto-stash before git pull and sync .example configs to live files

- All git pull commands now auto-stash local changes first
- .example configs are now merged with live files in Nitro's
  public/configuration directory to keep them 100% complete
- Removed unused getTargetName function from merge-config.cjs
This commit is contained in:
root
2026-06-07 16:36:15 +02:00
parent 1db80e76fe
commit ef559ce64b
2 changed files with 23 additions and 15 deletions
-9
View File
@@ -22,15 +22,6 @@ function deepMerge(target, source) {
return target;
}
function getTargetName(exampleFile) {
let name = exampleFile.replace(/\.example$/, '');
const ext = path.extname(name);
if (!ext || ext === '.example') {
name += '.json';
}
return name;
}
const srcContent = fs.readFileSync(srcFile, 'utf8');
let srcData;
try {