mirror of
https://github.com/sern-handler/cli
synced 2026-06-06 01:16:53 +00:00
fix config fn unresolved name
This commit is contained in:
@@ -79,9 +79,7 @@ for await (const absPath of filePaths) {
|
|||||||
commandModule = commandModule.default;
|
commandModule = commandModule.default;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (typeof config === 'function') {
|
|
||||||
config = config(absPath, commandModule);
|
|
||||||
}
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
commandModule = commandModule.getInstance();
|
commandModule = commandModule.getInstance();
|
||||||
@@ -96,6 +94,9 @@ for await (const absPath of filePaths) {
|
|||||||
commandModule.absPath = absPath;
|
commandModule.absPath = absPath;
|
||||||
modules.push({ commandModule, config });
|
modules.push({ commandModule, config });
|
||||||
}
|
}
|
||||||
|
if (typeof config === 'function') {
|
||||||
|
config = config(absPath, commandModule);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const cacheDir = resolve('./.sern');
|
const cacheDir = resolve('./.sern');
|
||||||
|
|||||||
Reference in New Issue
Block a user