fix(core): update

This commit is contained in:
Philipp Kunz 2022-09-16 08:22:57 +02:00
parent 3dae706a67
commit 2460c89151
2 changed files with 4 additions and 4 deletions

View File

@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@gitzone/tsdoc',
version: '1.1.11',
version: '1.1.12',
description: 'a tool for better documentation'
}

View File

@ -7,12 +7,12 @@ import { TypeDoc } from './tsdoc.classes.typedoc.js';
export const run = async () => {
const tsdocCli = new plugins.smartcli.Smartcli();
tsdocCli.standardTask().subscribe(async (argvArg) => {
tsdocCli.standardCommand().subscribe(async (argvArg) => {
logger.log('warn', `Auto detecting environment!`);
switch (true) {
case await TypeDoc.isTypeDocDir(paths.cwd):
logger.log('ok', `Detected TypeDoc compliant directory at ${paths.cwd}`);
tsdocCli.trigger('typedoc');
tsdocCli.triggerCommand('typedoc', argvArg);
break;
default:
logger.log('error', `Cannot determine docs format at ${paths.cwd}`);
@ -27,7 +27,7 @@ export const run = async () => {
});
tsdocCli.addCommand('test').subscribe((argvArg) => {
tsdocCli.trigger('typedoc');
tsdocCli.triggerCommand('typedoc', argvArg);
process.on('exit', async () => {
await plugins.smartfile.fs.remove(paths.publicDir);
});