mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 19:22:51 +00:00
fix: add cruical Converter ceation option
This commit is contained in:
@@ -45,11 +45,13 @@ export class Converter {
|
||||
* Create a new converter
|
||||
*
|
||||
* @param projectPath Path to the project
|
||||
* @param sourcePath Path to optionally point to a different directory of / or single source file
|
||||
*/
|
||||
constructor(projectPath: string) {
|
||||
constructor(projectPath: string, sourcePath?: string) {
|
||||
// set config for schema generator
|
||||
const config: Config = {
|
||||
...DEFAULT_CONFIG,
|
||||
path: sourcePath,
|
||||
sortProps: true,
|
||||
topRef: false,
|
||||
tsconfig: path.join(getTsconfigPath(projectPath), 'tsconfig.json'),
|
||||
|
||||
Reference in New Issue
Block a user