fix(ci): tolerate missing contract surface roots

This commit is contained in:
Peter Steinberger
2026-04-04 03:49:17 +01:00
parent 6b3ff0dd4f
commit 3c23126980

View File

@@ -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)) {