poe-code 3.0.198 → 3.0.200

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "poe-code",
3
- "version": "3.0.198",
3
+ "version": "3.0.200",
4
4
  "description": "CLI tool to configure Poe API for developer workflows.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -340,6 +340,9 @@ async function resolveBaseChain({
340
340
  throw error2;
341
341
  }
342
342
  if (visited.has(discoveredBase.filePath)) {
343
+ if (optional) {
344
+ return void 0;
345
+ }
343
346
  throw new Error(
344
347
  `Circular extends detected.
345
348
  Visited files:
@@ -1521,7 +1524,7 @@ var originalEscape = Mustache2.escape;
1521
1524
  // packages/poe-code-config/src/store.ts
1522
1525
  async function readMergedDocument(fs14, globalPath, projectPath) {
1523
1526
  const globalDocument = await readStoredDocument(fs14, globalPath);
1524
- if (!projectPath) {
1527
+ if (!projectPath || projectPath === globalPath) {
1525
1528
  return globalDocument.data;
1526
1529
  }
1527
1530
  const projectDocument = await readStoredDocument(fs14, projectPath);