mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-21 09:03:02 +00:00
refactor: adjust code to updated dependencies
This commit is contained in:
@@ -13,8 +13,9 @@
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
import {asyncPool} from '@krlwlfrt/async-pool';
|
||||
import {Logger} from '@openstapps/logger';
|
||||
import {ProjectReflection} from 'typedoc';
|
||||
import {logger, NodesWithMetaInformation, NodeWithMetaInformation, RouteWithMetaInformation} from './common';
|
||||
import {NodesWithMetaInformation, NodeWithMetaInformation, RouteWithMetaInformation} from './common';
|
||||
|
||||
/**
|
||||
* Gather relevant information of routes
|
||||
@@ -38,11 +39,11 @@ export async function gatherRouteInformation(reflection: ProjectReflection): Pro
|
||||
if (node.extendedTypes.some((extendedType) => {
|
||||
return (extendedType as any).name === 'SCAbstractRoute';
|
||||
})) {
|
||||
logger.info(`Found ${node.name} in ${module.originalName}.`);
|
||||
Logger.info(`Found ${node.name} in ${module.originalName}.`);
|
||||
|
||||
if (module.originalName.match(/\.d\.ts$/)) {
|
||||
module.originalName = module.originalName.substr(0, module.originalName.length - 5);
|
||||
logger.info(`Using compiled version of module in ${module.originalName}.`);
|
||||
Logger.info(`Using compiled version of module in ${module.originalName}.`);
|
||||
}
|
||||
|
||||
const importedModule = await import(module.originalName);
|
||||
|
||||
Reference in New Issue
Block a user