mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-01 17:30:21 +00:00
fix(ci): tolerate missing contract surface roots
This commit is contained in:
@@ -46,7 +46,10 @@ function createModuleLoader() {
|
||||
|
||||
const loadModule = createModuleLoader();
|
||||
|
||||
function resolveContractSurfaceModulePath(rootDir: string): string | null {
|
||||
function resolveContractSurfaceModulePath(rootDir: string | undefined): string | null {
|
||||
if (typeof rootDir !== "string" || rootDir.length === 0) {
|
||||
return null;
|
||||
}
|
||||
for (const basename of CONTRACT_SURFACE_BASENAMES) {
|
||||
const modulePath = path.join(rootDir, basename);
|
||||
if (fs.existsSync(modulePath)) {
|
||||
|
||||
Reference in New Issue
Block a user