Skip to content

Commit

Permalink
fix(concerto) ensure uniform use of the same concerto dependency thro…
Browse files Browse the repository at this point in the history
…ugh the various packages

Signed-off-by: Jerome Simeon <[email protected]>
  • Loading branch information
jeromesimeon committed Sep 12, 2019
1 parent 3d95abe commit 4fd5222
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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/markdown-cicero/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@
"dependencies": {
"@accordproject/markdown-common": "0.2.0",
"commonmark": "^0.29.0",
"composer-concerto": "^0.71.6",
"sax": "^1.2.4",
"winston": "3.2.1",
"xmldom": "^0.1.27"
Expand Down
4 changes: 1 addition & 3 deletions packages/markdown-cicero/src/CiceroMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@

'use strict';

const ModelManager = require('composer-concerto').ModelManager;
const Factory = require('composer-concerto').Factory;
const Serializer = require('composer-concerto').Serializer;
const { ModelManager, Factory, Serializer } = require('@accordproject/markdown-common').ComposerConcerto;

const CommonMark = require('@accordproject/markdown-common').CommonMark;
const { commonmarkModel } = require('@accordproject/markdown-common').Models;
Expand Down
2 changes: 2 additions & 0 deletions packages/markdown-common/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* @module markdown-transform
*/

module.exports.ComposerConcerto = require('composer-concerto');

module.exports.Logger = require('./lib/Logger');
module.exports.Stack = require('./lib/Stack');
module.exports.Models = require('./lib/Models');
Expand Down
4 changes: 1 addition & 3 deletions packages/markdown-common/src/CommonMark.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@

const commonmark = require('commonmark');
const sax = require('sax');
const ModelManager = require('composer-concerto').ModelManager;
const Factory = require('composer-concerto').Factory;

const Serializer = require('composer-concerto').Serializer;
const { ModelManager, Factory, Serializer } = require('composer-concerto');

const Stack = require('./Stack');
const ToStringVisitor = require('./ToStringVisitor');
Expand Down

0 comments on commit 4fd5222

Please sign in to comment.