@geekmidas/cli 1.10.37 → 1.10.38

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.
@@ -1790,7 +1790,7 @@ async function openapiCommand(options = {}) {
1790
1790
  if (result) logger.log(`Found ${result.endpointCount} endpoints`);
1791
1791
  } else {
1792
1792
  const { workspace } = loadedConfig;
1793
- const workspaceRoot = options.cwd || process.cwd();
1793
+ const workspaceRoot = workspace.root;
1794
1794
  const backendApps = Object.entries(workspace.apps).filter(([_, app]) => app.type === "backend" && (app.openapi === true || typeof app.openapi === "object" && app.openapi.enabled !== false));
1795
1795
  if (backendApps.length === 0) {
1796
1796
  logger.log("No backend apps with OpenAPI enabled found");
@@ -1916,4 +1916,4 @@ Object.defineProperty(exports, 'resolveOpenApiConfig', {
1916
1916
  return resolveOpenApiConfig;
1917
1917
  }
1918
1918
  });
1919
- //# sourceMappingURL=openapi-0JUzU5Tv.cjs.map
1919
+ //# sourceMappingURL=openapi-DHp49UJV.cjs.map