simplify plugin args and prepare for reduction among plugins

This commit is contained in:
Jacob Nguyen
2024-05-17 23:13:12 -05:00
parent 960f90c544
commit 699adf276c
9 changed files with 81 additions and 159 deletions

View File

@@ -22,7 +22,6 @@ export const shouldHandle = (pth: string, filenam: string) => {
}
/**
* Import any module based on the absolute path.
* This can accept four types of exported modules
@@ -47,7 +46,6 @@ export async function importModule<T>(absPath: string) {
const p = path.parse(absPath)
commandModule.name ??= p.name; commandModule.description ??= "...";
commandModule.meta = {
//@ts-ignore
id: Id.create(commandModule.name, commandModule.type),
absPath,
};