remove backup creation of original file

clean up internal configuration
This commit is contained in:
2026-05-12 15:26:29 +02:00
parent 3bf5a6893e
commit 25d2f24cad
+1 -8
View File
@@ -16,7 +16,6 @@
* - .json files for objects and metadata * - .json files for objects and metadata
* - .txt files for plain text strings * - .txt files for plain text strings
* - _manifest.json with extraction metadata * - _manifest.json with extraction metadata
* - .elx.original.json backup
*/ */
const fs = require('fs').promises; const fs = require('fs').promises;
@@ -53,11 +52,9 @@ try {
const CONFIG = { const CONFIG = {
XML_INDENT: 2, XML_INDENT: 2,
JSON_INDENT: 2, JSON_INDENT: 2,
BACKUP_SUFFIX: '.elx.original.json',
MANIFEST_FILE: '_manifest.json', MANIFEST_FILE: '_manifest.json',
INDEX_FILE: 'index', INDEX_FILE: 'index',
ITEM_PREFIX: 'item', ITEM_PREFIX: 'item'
ALLOW_OVERWRITE: false,
}; };
// ============================================================================ // ============================================================================
@@ -612,10 +609,6 @@ async function main() {
console.log(`\n📂 Creating output: ${outputPath}`); console.log(`\n📂 Creating output: ${outputPath}`);
await createOutputDirectory(outputPath, allowOverwrite); await createOutputDirectory(outputPath, allowOverwrite);
// Save backup
console.log(' Saving backup...');
await saveBackup(outputPath, data);
// Process each root property // Process each root property
console.log('\n⚙️ Processing properties:\n'); console.log('\n⚙️ Processing properties:\n');
const processedProperties = []; const processedProperties = [];