From faf7a774c5fe82c7cdd19dc69c885839bb6f482f Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Mon, 14 Oct 2019 12:59:25 +0200 Subject: [PATCH] fix(core): update --- ts/tsdoc.classes.typedoc.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ts/tsdoc.classes.typedoc.ts b/ts/tsdoc.classes.typedoc.ts index 59eff65..60c19bb 100644 --- a/ts/tsdoc.classes.typedoc.ts +++ b/ts/tsdoc.classes.typedoc.ts @@ -22,8 +22,12 @@ export class TypeDoc { } public async compile() { + let tsDir: 'ts' | 'ts_web'; + plugins.smartfile.fs.isDirectory(plugins.path.join(this.typedocDirectory, 'ts')) ? tsDir = 'ts' : null; + plugins.smartfile.fs.isDirectory(plugins.path.join(this.typedocDirectory, 'ts_web')) ? tsDir = 'ts_web' : null; + await this.smartshellInstance.exec( - `typedoc --tsconfig ${paths.tsconfigFile} --out public/ ts/` + `typedoc --tsconfig ${paths.tsconfigFile} --out public/ ${tsDir}` ); } }