@famgia/omnify-cli 0.0.146 → 0.0.148
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 +13 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +225 -5
- package/dist/index.d.ts +225 -5
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1522,11 +1522,22 @@ async function runGenerate(options) {
|
|
|
1522
1522
|
const absolutePath = (0, import_node_path7.resolve)(rootDir, entry.path);
|
|
1523
1523
|
logger.debug(` Checking: ${entry.path} \u2192 ${absolutePath}`);
|
|
1524
1524
|
if ((0, import_node_fs7.existsSync)(absolutePath)) {
|
|
1525
|
-
|
|
1525
|
+
let packageSchemas = await (0, import_omnify_core5.loadSchemas)(absolutePath, { skipPartialResolution: true });
|
|
1526
|
+
if (entry.output) {
|
|
1527
|
+
const schemasWithOutput = {};
|
|
1528
|
+
for (const [name, schema] of Object.entries(packageSchemas)) {
|
|
1529
|
+
schemasWithOutput[name] = {
|
|
1530
|
+
...schema,
|
|
1531
|
+
packageOutput: entry.output
|
|
1532
|
+
};
|
|
1533
|
+
}
|
|
1534
|
+
packageSchemas = schemasWithOutput;
|
|
1535
|
+
}
|
|
1526
1536
|
const count = Object.keys(packageSchemas).filter((k) => !k.startsWith("__partial__")).length;
|
|
1527
1537
|
const partialCount = Object.keys(packageSchemas).filter((k) => k.startsWith("__partial__")).length;
|
|
1528
1538
|
const nsInfo = entry.namespace ? ` [${entry.namespace}]` : "";
|
|
1529
|
-
|
|
1539
|
+
const outputInfo = entry.output?.laravel ? ` \u2192 ${entry.output.laravel.base}` : "";
|
|
1540
|
+
logger.info(` \u2022 ${entry.path}${nsInfo}: ${count} schema(s)${partialCount > 0 ? ` + ${partialCount} partial(s)` : ""}${outputInfo}`);
|
|
1530
1541
|
schemas = { ...packageSchemas, ...schemas };
|
|
1531
1542
|
hasPackageSchemas = true;
|
|
1532
1543
|
} else {
|