demike / TsUML2

Generates UML diagrams from TypeScript source code
MIT License
250 stars 33 forks source link

bugfix: override default settings with user settings #16

Closed lokeshdaiya closed 1 year ago

lokeshdaiya commented 1 year ago

Currently outFile path is being used from SETTINGS variable https://github.com/demike/TsUML2/blob/18f381c0682075d7e6b9a1f5797d1d7f7c70d3f2/src/core/index.ts#L106 Due to which output file is not getting saved on user specified location. Similarly there are few more properties which should be override if user settings is passed.

In below example output file should be saved on specified path

const t = require('tsuml2')

t.createNomnomlSVG({glob: `D:/apps/src/app/**/!(*.d|*.spec).ts`,outFile: 'D:/apps/src/demo.svg'});
demike commented 1 year ago

LGTM!