poe-code 3.0.199 → 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/dist/index.js CHANGED
@@ -980,6 +980,9 @@ async function resolveBaseChain({
980
980
  throw error2;
981
981
  }
982
982
  if (visited.has(discoveredBase.filePath)) {
983
+ if (optional) {
984
+ return void 0;
985
+ }
983
986
  throw new Error(
984
987
  `Circular extends detected.
985
988
  Visited files:
@@ -2295,7 +2298,7 @@ async function writeScope(fs19, filePath, scope, values) {
2295
2298
  }
2296
2299
  async function readMergedDocument(fs19, globalPath, projectPath) {
2297
2300
  const globalDocument = await readStoredDocument(fs19, globalPath);
2298
- if (!projectPath) {
2301
+ if (!projectPath || projectPath === globalPath) {
2299
2302
  return globalDocument.data;
2300
2303
  }
2301
2304
  const projectDocument = await readStoredDocument(fs19, projectPath);
@@ -56822,7 +56825,7 @@ var init_package2 = __esm({
56822
56825
  "package.json"() {
56823
56826
  package_default2 = {
56824
56827
  name: "poe-code",
56825
- version: "3.0.199",
56828
+ version: "3.0.200",
56826
56829
  description: "CLI tool to configure Poe API for developer workflows.",
56827
56830
  type: "module",
56828
56831
  main: "./dist/index.js",