fix(core): update
This commit is contained in:
parent
3dae706a67
commit
2460c89151
@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@gitzone/tsdoc',
|
name: '@gitzone/tsdoc',
|
||||||
version: '1.1.11',
|
version: '1.1.12',
|
||||||
description: 'a tool for better documentation'
|
description: 'a tool for better documentation'
|
||||||
}
|
}
|
||||||
|
@ -7,12 +7,12 @@ import { TypeDoc } from './tsdoc.classes.typedoc.js';
|
|||||||
export const run = async () => {
|
export const run = async () => {
|
||||||
const tsdocCli = new plugins.smartcli.Smartcli();
|
const tsdocCli = new plugins.smartcli.Smartcli();
|
||||||
|
|
||||||
tsdocCli.standardTask().subscribe(async (argvArg) => {
|
tsdocCli.standardCommand().subscribe(async (argvArg) => {
|
||||||
logger.log('warn', `Auto detecting environment!`);
|
logger.log('warn', `Auto detecting environment!`);
|
||||||
switch (true) {
|
switch (true) {
|
||||||
case await TypeDoc.isTypeDocDir(paths.cwd):
|
case await TypeDoc.isTypeDocDir(paths.cwd):
|
||||||
logger.log('ok', `Detected TypeDoc compliant directory at ${paths.cwd}`);
|
logger.log('ok', `Detected TypeDoc compliant directory at ${paths.cwd}`);
|
||||||
tsdocCli.trigger('typedoc');
|
tsdocCli.triggerCommand('typedoc', argvArg);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
logger.log('error', `Cannot determine docs format at ${paths.cwd}`);
|
logger.log('error', `Cannot determine docs format at ${paths.cwd}`);
|
||||||
@ -27,7 +27,7 @@ export const run = async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
tsdocCli.addCommand('test').subscribe((argvArg) => {
|
tsdocCli.addCommand('test').subscribe((argvArg) => {
|
||||||
tsdocCli.trigger('typedoc');
|
tsdocCli.triggerCommand('typedoc', argvArg);
|
||||||
process.on('exit', async () => {
|
process.on('exit', async () => {
|
||||||
await plugins.smartfile.fs.remove(paths.publicDir);
|
await plugins.smartfile.fs.remove(paths.publicDir);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user