@geekmidas/cli 1.10.37 → 1.10.39

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.
@@ -1789,7 +1789,7 @@ async function openapiCommand(options = {}) {
1789
1789
  if (result) logger.log(`Found ${result.endpointCount} endpoints`);
1790
1790
  } else {
1791
1791
  const { workspace } = loadedConfig;
1792
- const workspaceRoot = options.cwd || process.cwd();
1792
+ const workspaceRoot = workspace.root;
1793
1793
  const backendApps = Object.entries(workspace.apps).filter(([_, app]) => app.type === "backend" && (app.openapi === true || typeof app.openapi === "object" && app.openapi.enabled !== false));
1794
1794
  if (backendApps.length === 0) {
1795
1795
  logger.log("No backend apps with OpenAPI enabled found");
@@ -1868,4 +1868,4 @@ async function runOpenApiInSubprocess(appCwd, appName) {
1868
1868
 
1869
1869
  //#endregion
1870
1870
  export { ConstructGenerator, EndpointGenerator, OPENAPI_OUTPUT_PATH, generateOpenApi, isPartitionedRoutes, normalizeRoutes, openapiCommand, resolveOpenApiConfig };
1871
- //# sourceMappingURL=openapi-C5AycKTR.mjs.map
1871
+ //# sourceMappingURL=openapi-DF9GyhyZ.mjs.map