@diagonal-hq/cli 0.25.1 → 0.25.2

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.
Files changed (2) hide show
  1. package/dist/cli.mjs +7 -2
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -327072,7 +327072,7 @@ var ENTITY_UID_TYPES = /* @__PURE__ */ new Set(["page", "workflow", "layout", "c
327072
327072
  function hasErrors(diagnostics) {
327073
327073
  return diagnostics.some((diagnostic2) => diagnostic2.severity === "error");
327074
327074
  }
327075
- function buildWorkspace(root, { assetCatalog = null, writeSource = false, fixSource = false } = {}) {
327075
+ function buildWorkspace(root, { assetCatalog = null, writeSource = false, fixSource = false, entryPaths = [] } = {}) {
327076
327076
  const diagnostics = [];
327077
327077
  const output = {
327078
327078
  config: null,
@@ -327467,7 +327467,12 @@ function buildWorkspace(root, { assetCatalog = null, writeSource = false, fixSou
327467
327467
  for (const path of otherFiles) {
327468
327468
  buildFile(path);
327469
327469
  }
327470
- const layoutPaths = [...new Set(output.pages.map((page) => page.layout).filter((path) => path !== null))].toSorted();
327470
+ const layoutPaths = [
327471
+ .../* @__PURE__ */ new Set([
327472
+ ...output.pages.map((page) => page.layout).filter((path) => path !== null),
327473
+ ...entryPaths.filter((path) => moduleEntityType(path) === "layout")
327474
+ ])
327475
+ ].toSorted();
327471
327476
  for (const path of layoutPaths) {
327472
327477
  const entry = buildUnit(path, ({ source, ast }) => {
327473
327478
  output.layouts.push(buildLayout2(path, path, source, ast, root));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "The diagonal CLI and the configuration helpers for file-based Diagonal workspaces.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {