Schema generation should respect the `tsconfig.json`
Summary
Neither typedoc nor ts-json-schema-generator use the tsconfig.json of the project (StAppsCore) that they are supposed to convert.
Steps to reproduce
npm run build on the branch for core!4 (merged).
What is the current bug behavior?
> @openstapps/core@0.2.0 schema /builds/openstapps/core
> node --max-old-space-size=8192 --stack-size=10240 ./node_modules/.bin/openstapps-core-tools schema src/core lib/schema
[ERROR] Cannot find name 'Proxy'. Did you mean 'proxy'?
Cannot find name 'Proxy'.
[INFO] Error
at new BaseError (/builds/openstapps/core/node_modules/ts-json-schema-generator/dist/src/Error/BaseError.js:5:26)
at new DiagnosticError (/builds/openstapps/core/node_modules/ts-json-schema-generator/dist/src/Error/DiagnosticError.js:7:9)
at Object.createProgram (/builds/openstapps/core/node_modules/ts-json-schema-generator/dist/factory/program.js:41:19)
at new Converter (/builds/openstapps/core/node_modules/@openstapps/core-tools/lib/schema.js:42:35)
at Object.<anonymous> (/builds/openstapps/core/node_modules/@openstapps/core-tools/lib/cli.js:68:27)
at Generator.next (<anonymous>)
at /builds/openstapps/core/node_modules/@openstapps/core-tools/lib/cli.js:8:71
at new Promise (<anonymous>)
at __awaiter (/builds/openstapps/core/node_modules/@openstapps/core-tools/lib/cli.js:4:12)
at Command.commander.command.action (/builds/openstapps/core/node_modules/@openstapps/core-tools/lib/cli.js:63:54)
What is the expected correct behavior?
The schemas should be generated.
Possible fixes
Tell typedoc and ts-json-schema-generator explicitly to use the tsconfig.json.
cc: @abcdev