fix(core): update
This commit is contained in:
8
ts/00_commitinfo_data.ts
Normal file
8
ts/00_commitinfo_data.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/**
|
||||
* autocreated commitinfo by @pushrocks/commitinfo
|
||||
*/
|
||||
export const commitinfo = {
|
||||
name: '@gitzone/tsdoc',
|
||||
version: '1.1.9',
|
||||
description: 'a tool for better documentation'
|
||||
}
|
@ -1,7 +1,7 @@
|
||||
import * as early from '@pushrocks/early';
|
||||
early.start('tsdoc');
|
||||
import * as plugins from './tsdoc.plugins';
|
||||
import * as cli from './tsdoc.cli';
|
||||
import * as plugins from './tsdoc.plugins.js';
|
||||
import * as cli from './tsdoc.cli.js';
|
||||
early.stop();
|
||||
|
||||
export const runCli = async () => {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import * as plugins from './tsdoc.plugins';
|
||||
import * as paths from './tsdoc.paths';
|
||||
import * as plugins from './tsdoc.plugins.js';
|
||||
import * as paths from './tsdoc.paths.js';
|
||||
|
||||
export class TypeDoc {
|
||||
public smartshellInstance = new plugins.smartshell.Smartshell({
|
||||
@ -9,10 +9,7 @@ export class TypeDoc {
|
||||
|
||||
// Static
|
||||
public static async isTypeDocDir(dirPathArg: string): Promise<boolean> {
|
||||
const result = await plugins.smartfile.fs.fileExists(
|
||||
plugins.path.join(dirPathArg, 'mkdocs.yml')
|
||||
);
|
||||
return !result;
|
||||
return true;
|
||||
}
|
||||
|
||||
// Instance
|
||||
@ -24,10 +21,12 @@ export class TypeDoc {
|
||||
public async compile(options?: { publicSubdir?: string }) {
|
||||
const data = {
|
||||
compilerOptions: {
|
||||
target: 'es2017',
|
||||
module: 'commonjs',
|
||||
esModuleInterop: true,
|
||||
experimentalDecorators: true,
|
||||
"experimentalDecorators": true,
|
||||
"useDefineForClassFields": false,
|
||||
"target": "ES2022",
|
||||
"module": "ES2022",
|
||||
"moduleResolution": "nodenext",
|
||||
"skipLibCheck": true
|
||||
},
|
||||
include: [],
|
||||
};
|
||||
|
@ -1,8 +1,8 @@
|
||||
import * as plugins from './tsdoc.plugins';
|
||||
import * as paths from './tsdoc.paths';
|
||||
import { logger } from './tsdoc.logging';
|
||||
import * as plugins from './tsdoc.plugins.js';
|
||||
import * as paths from './tsdoc.paths.js';
|
||||
import { logger } from './tsdoc.logging.js';
|
||||
|
||||
import { TypeDoc } from './tsdoc.classes.typedoc';
|
||||
import { TypeDoc } from './tsdoc.classes.typedoc.js';
|
||||
|
||||
export const run = async () => {
|
||||
const tsdocCli = new plugins.smartcli.Smartcli();
|
||||
|
@ -1,4 +1,4 @@
|
||||
import * as plugins from './tsdoc.plugins';
|
||||
import * as plugins from './tsdoc.plugins.js';
|
||||
|
||||
export const logger = new plugins.smartlog.Smartlog({
|
||||
logContext: {
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as plugins from './tsdoc.plugins';
|
||||
import * as plugins from './tsdoc.plugins.js';
|
||||
|
||||
// dirs
|
||||
export const packageDir = plugins.path.join(__dirname, '../');
|
||||
export const packageDir = plugins.path.join(plugins.smartpath.get.dirnameFromImportMetaUrl(import.meta.url), '../');
|
||||
export const cwd = process.cwd();
|
||||
export const binDir = plugins.path.join(packageDir, './node_modules/.bin');
|
||||
export const assetsDir = plugins.path.join(packageDir, './assets');
|
||||
|
@ -8,9 +8,10 @@ import * as smartcli from '@pushrocks/smartcli';
|
||||
import * as smartfile from '@pushrocks/smartfile';
|
||||
import * as smartlog from '@pushrocks/smartlog';
|
||||
import * as smartlogDestinationLocal from '@pushrocks/smartlog-destination-local';
|
||||
import * as smartpath from '@pushrocks/smartpath';
|
||||
import * as smartshell from '@pushrocks/smartshell';
|
||||
|
||||
export { smartcli, smartfile, smartlog, smartlogDestinationLocal, smartshell };
|
||||
export { smartcli, smartfile, smartlog, smartlogDestinationLocal, smartpath, smartshell };
|
||||
|
||||
// third party scope
|
||||
import * as typedoc from 'typedoc';
|
||||
|
Reference in New Issue
Block a user