remove backup creation of original file
clean up internal configuration
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
* - .json files for objects and metadata
|
||||
* - .txt files for plain text strings
|
||||
* - _manifest.json with extraction metadata
|
||||
* - .elx.original.json backup
|
||||
*/
|
||||
|
||||
const fs = require('fs').promises;
|
||||
@@ -53,11 +52,9 @@ try {
|
||||
const CONFIG = {
|
||||
XML_INDENT: 2,
|
||||
JSON_INDENT: 2,
|
||||
BACKUP_SUFFIX: '.elx.original.json',
|
||||
MANIFEST_FILE: '_manifest.json',
|
||||
INDEX_FILE: 'index',
|
||||
ITEM_PREFIX: 'item',
|
||||
ALLOW_OVERWRITE: false,
|
||||
ITEM_PREFIX: 'item'
|
||||
};
|
||||
|
||||
// ============================================================================
|
||||
@@ -612,10 +609,6 @@ async function main() {
|
||||
console.log(`\n📂 Creating output: ${outputPath}`);
|
||||
await createOutputDirectory(outputPath, allowOverwrite);
|
||||
|
||||
// Save backup
|
||||
console.log(' Saving backup...');
|
||||
await saveBackup(outputPath, data);
|
||||
|
||||
// Process each root property
|
||||
console.log('\n⚙️ Processing properties:\n');
|
||||
const processedProperties = [];
|
||||
|
||||
Reference in New Issue
Block a user