Skip to content

Commit

Permalink
test(types): remove unused deps
Browse files Browse the repository at this point in the history
Signed-off-by: Dan Selman <[email protected]>
  • Loading branch information
dselman committed Oct 21, 2024
1 parent d9aec61 commit 1fd2066
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 226 deletions.
193 changes: 1 addition & 192 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/concerto-core/lib/introspect/decorator.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ class Decorator {
}
}
catch (err) {
console.log(err);
this.handleError(validationOptions.missingDecorator, err);
}
}
Expand Down
7 changes: 1 addition & 6 deletions packages/concerto-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,12 @@
"devDependencies": {
"@accordproject/concerto-codegen": "3.23.8",
"@accordproject/concerto-core": "3.19.2",
"@accordproject/concerto-metamodel": "3.10.1",
"@accordproject/concerto-util": "3.19.2",
"@types/jest": "29.5.13",
"ajv": "8.17.1",
"eslint": "8.2.0",
"jest": "29.7.0",
"npm-run-all": "4.1.5",
"rimraf": "6.0.1",
"ts-jest": "29.2.5",
"ts-json-schema-generator": "2.3.0",
"typescript": "5.6.3"
"ts-jest": "29.2.5"
},
"jest": {
"preset": "ts-jest",
Expand Down
5 changes: 2 additions & 3 deletions packages/concerto-types/scripts/codegen.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
'use strict';

const { ModelManager } = require('@accordproject/concerto-core');
const { CodeGen: { TypescriptVisitor }} = require('@accordproject/concerto-codegen');
const { MetaModelUtil: {metaModelCto} } = require('@accordproject/concerto-metamodel');
const { ModelLoader } = require('@accordproject/concerto-core');
const { FileWriter } = require('@accordproject/concerto-util');
const path = require('path');

/**
* Generate TypeScript files from the metamodel.
*/
async function main() {
const modelManager = await ModelLoader.loadModelManagerFromModelFiles([metaModelCto], {strict: true});
const modelManager = new ModelManager({addMetamodel:true, strict: true});
const visitor = new TypescriptVisitor();

const fileWriter = new FileWriter(path.resolve(__dirname, '..', 'src', 'generated'));
Expand Down
24 changes: 0 additions & 24 deletions packages/concerto-types/src/generated/unions/concerto.ts

This file was deleted.

0 comments on commit 1fd2066

Please sign in to comment.