move script version to config struct
This commit is contained in:
@@ -96,7 +96,8 @@ const CONFIG = {
|
|||||||
MANIFEST_FILE: '_manifest.json',
|
MANIFEST_FILE: '_manifest.json',
|
||||||
INDEX_FILE: 'index',
|
INDEX_FILE: 'index',
|
||||||
ITEM_PREFIX: 'item',
|
ITEM_PREFIX: 'item',
|
||||||
INTERNALS_SUFFIX: '_internals'
|
INTERNALS_SUFFIX: '_internals',
|
||||||
|
VERSION: '1.0.0'
|
||||||
};
|
};
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
@@ -602,7 +603,7 @@ async function processProperty(outputPath, propertyName, value) {
|
|||||||
async function createManifest(outputPath, data, processedProperties) {
|
async function createManifest(outputPath, data, processedProperties) {
|
||||||
const manifest = {
|
const manifest = {
|
||||||
extractedAt: new Date().toISOString(),
|
extractedAt: new Date().toISOString(),
|
||||||
scriptVersion: '1.0.0',
|
scriptVersion: CONFIG.VERSION,
|
||||||
properties: {},
|
properties: {},
|
||||||
summary: {
|
summary: {
|
||||||
totalProperties: processedProperties.length,
|
totalProperties: processedProperties.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user