@polka-codes/cli-shared 0.9.94 → 0.9.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -63325,8 +63325,6 @@ function loadConfigAtPath(path) {
|
|
|
63325
63325
|
} catch (error48) {
|
|
63326
63326
|
if (error48 instanceof ZodError) {
|
|
63327
63327
|
console.warn(`Config validation failed for ${path}: ${error48.message}`);
|
|
63328
|
-
} else {
|
|
63329
|
-
console.debug(`Could not load config from ${path}: ${error48 instanceof Error ? error48.message : String(error48)}`);
|
|
63330
63328
|
}
|
|
63331
63329
|
return;
|
|
63332
63330
|
}
|
|
@@ -63436,11 +63434,13 @@ ${error48}`);
|
|
|
63436
63434
|
const config3 = readConfig(path);
|
|
63437
63435
|
configs.push(config3);
|
|
63438
63436
|
} catch (error48) {
|
|
63439
|
-
|
|
63440
|
-
|
|
63441
|
-
|
|
63442
|
-
throw error48;
|
|
63437
|
+
const errorCode = error48?.code;
|
|
63438
|
+
if (errorCode === "ENOENT") {
|
|
63439
|
+
continue;
|
|
63443
63440
|
}
|
|
63441
|
+
console.error(`Error loading config file: ${path}
|
|
63442
|
+
${error48}`);
|
|
63443
|
+
throw error48;
|
|
63444
63444
|
}
|
|
63445
63445
|
}
|
|
63446
63446
|
} else {
|