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:
1 parent
1db80e76fe
commit
ef559ce64b
2 files changed
+23
-15
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user