@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -6
  2. 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
- if (error48 instanceof ZodError) {
63440
- console.error(`Error in config file: ${path}
63441
- ${error48}`);
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@polka-codes/cli-shared",
3
- "version": "0.9.94",
3
+ "version": "0.9.96",
4
4
  "license": "AGPL-3.0",
5
5
  "author": "github@polka.codes",
6
6
  "type": "module",