diff --git a/package-lock.json b/package-lock.json index 149b75a..4994e97 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2383,9 +2383,9 @@ "integrity": "sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA==" }, "@types/node": { - "version": "14.14.31", - "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.31.tgz", - "integrity": "sha512-vFHy/ezP5qI0rFgJ7aQnjDXwAMrG0KqqIH7tQG5PPv3BWBayOPIQNBjVc/P6hhdZfMx51REc6tfDNXHUio893g==" + "version": "14.14.32", + "resolved": "https://verdaccio.lossless.one/@types%2fnode/-/node-14.14.32.tgz", + "integrity": "sha512-/Ctrftx/zp4m8JOujM5ZhwzlWLx22nbQJiVqz8/zE15gOeEW+uly3FSX4fGFpcfEvFzXcMCJwq9lGVWgyARXhg==" }, "@types/parcel-bundler": { "version": "1.12.3", diff --git a/package.json b/package.json index 709067a..7fb8762 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "@gitzone/tsbuild": "^2.1.25", "@gitzone/tstest": "^1.0.52", "@pushrocks/tapbundle": "^3.2.14", - "@types/node": "^14.14.31", + "@types/node": "^14.14.32", "tslint": "^6.1.3", "tslint-config-prettier": "^1.15.0" }, diff --git a/ts/tsdoc.classes.typedoc.ts b/ts/tsdoc.classes.typedoc.ts index c227ba7..53d22d9 100644 --- a/ts/tsdoc.classes.typedoc.ts +++ b/ts/tsdoc.classes.typedoc.ts @@ -31,10 +31,14 @@ export class TypeDoc { }, include: [], }; - data.include = [ - plugins.path.join(paths.cwd, './ts/**/*'), - plugins.path.join(paths.cwd, './ts_web/**/*'), - ]; + if (plugins.smartfile.fs.isDirectory(plugins.path.join(paths.cwd, './ts'))) { + data.include.push(plugins.path.join(paths.cwd, './ts/**/*')); + } + + if (plugins.smartfile.fs.isDirectory(plugins.path.join(paths.cwd, './ts_web'))) { + data.include.push(plugins.path.join(paths.cwd, './ts_web/**/*')); + } + await plugins.smartfile.memory.toFs(JSON.stringify(data), paths.tsconfigFile); let targetDir = paths.publicDir; if (options?.publicSubdir) {