Skip to content

Commit

Permalink
fix : Modify code generation script to include DCS Concerto model types
Browse files Browse the repository at this point in the history
Signed-off-by: Ayush1404 <[email protected]>
  • Loading branch information
Ayush1404 committed Dec 2, 2024
1 parent ce4462c commit 360fa67
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/concerto-types/scripts/codegen.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ const { ModelManager } = require('@accordproject/concerto-core');
const { CodeGen: { TypescriptVisitor }} = require('@accordproject/concerto-codegen');
const { FileWriter } = require('@accordproject/concerto-util');
const path = require('path');
const DCS_MODEL = require('@accordproject/concerto-core/lib/decoratormanager').DCS_MODEL;

/**
* Generate TypeScript files from the metamodel.
*/
async function main() {
const modelManager = new ModelManager({addMetamodel:true, strict: true});
modelManager.addCTOModel(DCS_MODEL, '[email protected]');
const visitor = new TypescriptVisitor();

const fileWriter = new FileWriter(path.resolve(__dirname, '..', 'src', 'generated'));
Expand Down

0 comments on commit 360fa67

Please sign in to comment.