@famgia/omnify-cli 0.0.147 → 0.0.149

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/cli.js CHANGED
@@ -1521,11 +1521,22 @@ async function runGenerate(options) {
1521
1521
  const absolutePath = resolve7(rootDir, entry.path);
1522
1522
  logger.debug(` Checking: ${entry.path} \u2192 ${absolutePath}`);
1523
1523
  if (existsSync7(absolutePath)) {
1524
- const packageSchemas = await loadSchemas3(absolutePath, { skipPartialResolution: true });
1524
+ let packageSchemas = await loadSchemas3(absolutePath, { skipPartialResolution: true });
1525
+ if (entry.output) {
1526
+ const schemasWithOutput = {};
1527
+ for (const [name, schema] of Object.entries(packageSchemas)) {
1528
+ schemasWithOutput[name] = {
1529
+ ...schema,
1530
+ packageOutput: entry.output
1531
+ };
1532
+ }
1533
+ packageSchemas = schemasWithOutput;
1534
+ }
1525
1535
  const count = Object.keys(packageSchemas).filter((k) => !k.startsWith("__partial__")).length;
1526
1536
  const partialCount = Object.keys(packageSchemas).filter((k) => k.startsWith("__partial__")).length;
1527
1537
  const nsInfo = entry.namespace ? ` [${entry.namespace}]` : "";
1528
- logger.info(` \u2022 ${entry.path}${nsInfo}: ${count} schema(s)${partialCount > 0 ? ` + ${partialCount} partial(s)` : ""}`);
1538
+ const outputInfo = entry.output?.laravel ? ` \u2192 ${entry.output.laravel.base}` : "";
1539
+ logger.info(` \u2022 ${entry.path}${nsInfo}: ${count} schema(s)${partialCount > 0 ? ` + ${partialCount} partial(s)` : ""}${outputInfo}`);
1529
1540
  schemas = { ...packageSchemas, ...schemas };
1530
1541
  hasPackageSchemas = true;
1531
1542
  } else {