diff --git a/utils/engine.js b/utils/engine.js index 5be6159..8e9410b 100644 --- a/utils/engine.js +++ b/utils/engine.js @@ -162,12 +162,15 @@ export class UTXOEngine { await emptyDir(outputSchemaDir); console.log(`UTXO: writing schema (v${schemaVersion}) ..`); + const schemaBundle = [] for (const schema of schemas) { await this._jsonWrite( [outputSchemaDir, schema.name + ".json"], schema.schema, ); + schemaBundle.push(schema.schema); } + await this._jsonWrite([ outputSchemaDir, 'bundle.json' ]) // write global index await this._jsonWrite([outputDir, "index.json"], entriesIndex);