mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
fix: add cruical Converter ceation option
This commit is contained in:
@@ -45,11 +45,13 @@ export class Converter {
|
|||||||
* Create a new converter
|
* Create a new converter
|
||||||
*
|
*
|
||||||
* @param projectPath Path to the project
|
* @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
|
// set config for schema generator
|
||||||
const config: Config = {
|
const config: Config = {
|
||||||
...DEFAULT_CONFIG,
|
...DEFAULT_CONFIG,
|
||||||
|
path: sourcePath,
|
||||||
sortProps: true,
|
sortProps: true,
|
||||||
topRef: false,
|
topRef: false,
|
||||||
tsconfig: path.join(getTsconfigPath(projectPath), 'tsconfig.json'),
|
tsconfig: path.join(getTsconfigPath(projectPath), 'tsconfig.json'),
|
||||||
|
|||||||
Reference in New Issue
Block a user