@diagonal-hq/cli 0.33.4 → 0.33.5

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 +15 -7
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -315047,6 +315047,20 @@ function buildMigrations({ migrations, ...input }) {
315047
315047
  };
315048
315048
  }
315049
315049
 
315050
+ // scripts/lib/runtime-build/navigation-menu-file.mjs
315051
+ init_define_globalThis_DIAGONAL_SDK_RUNTIME();
315052
+
315053
+ // scripts/lib/runtime-build/source-literal.mjs
315054
+ init_define_globalThis_DIAGONAL_SDK_RUNTIME();
315055
+ function quotedLiteral(value) {
315056
+ return `'${value.replaceAll("\\", "\\\\").replaceAll("'", "\\'").replaceAll("\r", "\\r").replaceAll("\n", "\\n").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029")}'`;
315057
+ }
315058
+
315059
+ // scripts/lib/runtime-build/navigation-menu-file.mjs
315060
+ function isMenuFile(path) {
315061
+ return /^navigation\/[^/]+\.ts$/.test(path) && !/\.(test|spec|d)\.ts$/.test(path);
315062
+ }
315063
+
315050
315064
  // scripts/lib/runtime-build/notification-files.mjs
315051
315065
  init_define_globalThis_DIAGONAL_SDK_RUNTIME();
315052
315066
  import { posix as posix3 } from "node:path";
@@ -319416,12 +319430,6 @@ function seoReadProblem({ key, read: read2, inTemplate }, bindings, resourcesByS
319416
319430
  return null;
319417
319431
  }
319418
319432
 
319419
- // scripts/lib/runtime-build/source-literal.mjs
319420
- init_define_globalThis_DIAGONAL_SDK_RUNTIME();
319421
- function quotedLiteral(value) {
319422
- return `'${value.replaceAll("\\", "\\\\").replaceAll("'", "\\'").replaceAll("\r", "\\r").replaceAll("\n", "\\n").replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029")}'`;
319423
- }
319424
-
319425
319433
  // scripts/lib/runtime-build/page-options-migration.mjs
319426
319434
  function movableMetaValue(value) {
319427
319435
  if (value !== null && typeof value !== "string" && !isPlainObject2(value)) {
@@ -322796,7 +322804,7 @@ function buildMaterializedWorkspace(root, plan, { assetCatalog = null, writeSour
322796
322804
  const files = listCheckoutFiles(root, IGNORED_DIRECTORIES);
322797
322805
  const moduleUidDefinitions = [];
322798
322806
  for (const path of files) {
322799
- const type = moduleEntityType(path);
322807
+ const type = moduleEntityType(path) ?? (isMenuFile(path) ? "menu" : null);
322800
322808
  const definition = type === null ? null : moduleUidDefinition(type, path, readFileSync13(join17(root, path), "utf8"));
322801
322809
  if (definition !== null) {
322802
322810
  moduleUidDefinitions.push(definition);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/cli",
3
- "version": "0.33.4",
3
+ "version": "0.33.5",
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": {