mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
refactor: adjust code to updated dependencies
This commit is contained in:
@@ -22,8 +22,6 @@ import {Definition} from 'ts-json-schema-generator';
|
||||
import {Application, ProjectReflection} from 'typedoc';
|
||||
import {promisify} from 'util';
|
||||
|
||||
export const logger = new Logger();
|
||||
|
||||
export const globPromisified = promisify(glob);
|
||||
export const mkdirPromisified = promisify(mkdir);
|
||||
export const readFilePromisified = promisify(readFile);
|
||||
@@ -116,7 +114,7 @@ export interface ExpectableValidationErrors {
|
||||
* @param srcPath Path to get reflection from
|
||||
*/
|
||||
export function getProjectReflection(srcPath: PathLike): ProjectReflection {
|
||||
logger.info(`Generating project reflection for ${srcPath.toString()}.`);
|
||||
Logger.info(`Generating project reflection for ${srcPath.toString()}.`);
|
||||
|
||||
const tsconfigPath = getTsconfigPath(srcPath.toString());
|
||||
|
||||
@@ -178,7 +176,7 @@ export function getTsconfigPath(startPath: string): string {
|
||||
tsconfigPath = tsconfigPathParts.join(sep);
|
||||
}
|
||||
|
||||
logger.info(`Using 'tsconfig.json' from ${tsconfigPath}.`);
|
||||
Logger.info(`Using 'tsconfig.json' from ${tsconfigPath}.`);
|
||||
|
||||
return tsconfigPath;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user