add suffix to internals folder
This commit is contained in:
@@ -74,7 +74,8 @@ const CONFIG = {
|
|||||||
JSON_INDENT: 2,
|
JSON_INDENT: 2,
|
||||||
MANIFEST_FILE: '_manifest.json',
|
MANIFEST_FILE: '_manifest.json',
|
||||||
INDEX_FILE: 'index',
|
INDEX_FILE: 'index',
|
||||||
ITEM_PREFIX: 'item'
|
ITEM_PREFIX: 'item',
|
||||||
|
INTERNALS_SUFFIX: '_internals'
|
||||||
};
|
};
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -627,7 +628,7 @@ async function main() {
|
|||||||
// Determine output directory
|
// Determine output directory
|
||||||
const dir = path.dirname(inputPath);
|
const dir = path.dirname(inputPath);
|
||||||
const basename = path.basename(inputPath, path.extname(inputPath));
|
const basename = path.basename(inputPath, path.extname(inputPath));
|
||||||
const outputPath = path.join(dir, basename);
|
const outputPath = path.join(dir, `${basename}${CONFIG.INTERNALS_SUFFIX}`);
|
||||||
|
|
||||||
console.log('\n📁 ElixForms JSON Extractor\n');
|
console.log('\n📁 ElixForms JSON Extractor\n');
|
||||||
console.log(`📖 Reading: ${inputPath}`);
|
console.log(`📖 Reading: ${inputPath}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user