@eventcatalog/core 3.12.5 → 3.12.6-beta.1

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/README.md CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- <img width="745" alt="EventCatalog" src="./images/example.png" />
25
+ <img width="745" alt="EventCatalog" src="./packages/core/images/example.png" />
26
26
 
27
27
  <p align="center">
28
28
  <br/>
@@ -37,7 +37,7 @@ var import_axios = __toESM(require("axios"), 1);
37
37
  var import_os = __toESM(require("os"), 1);
38
38
 
39
39
  // package.json
40
- var version = "3.12.5";
40
+ var version = "3.12.6-beta.1";
41
41
 
42
42
  // src/constants.ts
43
43
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "../chunk-A4YYUOP3.js";
4
- import "../chunk-2FXRNA5L.js";
3
+ } from "../chunk-ZCFMFJHJ.js";
4
+ import "../chunk-SORCY37E.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -106,7 +106,7 @@ var import_axios = __toESM(require("axios"), 1);
106
106
  var import_os = __toESM(require("os"), 1);
107
107
 
108
108
  // package.json
109
- var version = "3.12.5";
109
+ var version = "3.12.6-beta.1";
110
110
 
111
111
  // src/constants.ts
112
112
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-PPPLJBMY.js";
4
- import "../chunk-A4YYUOP3.js";
3
+ } from "../chunk-JSN23OLK.js";
4
+ import "../chunk-ZCFMFJHJ.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-2FXRNA5L.js";
6
+ import "../chunk-SORCY37E.js";
7
7
  import "../chunk-UPONRQSN.js";
8
8
  export {
9
9
  log_build_default as default
@@ -34,7 +34,7 @@ __export(catalog_to_astro_content_directory_exports, {
34
34
  });
35
35
  module.exports = __toCommonJS(catalog_to_astro_content_directory_exports);
36
36
 
37
- // node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
37
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
38
38
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
39
39
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
40
40
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-A4YYUOP3.js";
3
+ } from "./chunk-ZCFMFJHJ.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-3MOOTYNZ.js";
3
+ } from "./chunk-U5RPGH3R.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.12.5";
2
+ var version = "3.12.6-beta.1";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-2FXRNA5L.js";
3
+ } from "./chunk-SORCY37E.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-2FXRNA5L.js";
3
+ } from "./chunk-SORCY37E.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.12.5";
28
+ var version = "3.12.6-beta.1";
29
29
 
30
30
  // src/constants.ts
31
31
  var VERSION = version;
package/dist/constants.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-2FXRNA5L.js";
3
+ } from "./chunk-SORCY37E.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -22,7 +22,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  mod
23
23
  ));
24
24
 
25
- // node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
25
+ // ../../node_modules/.pnpm/tsup@8.5.0_jiti@1.21.7_postcss@8.5.6_typescript@5.9.3_yaml@2.8.1/node_modules/tsup/assets/cjs_shims.js
26
26
  var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
27
27
  var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
28
28
 
@@ -109,7 +109,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
109
109
  var import_picocolors = __toESM(require("picocolors"), 1);
110
110
 
111
111
  // package.json
112
- var version = "3.12.5";
112
+ var version = "3.12.6-beta.1";
113
113
 
114
114
  // src/constants.ts
115
115
  var VERSION = version;
@@ -786,6 +786,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
786
786
  logger.info(`CATALOG_DIR: ${core}`, "debug");
787
787
  }
788
788
  if (options.forceRecreate) clearCore();
789
+ await verifyRequiredFieldsAreInCatalogConfigFile(dir);
789
790
  copyCore();
790
791
  await resolve_catalog_dependencies_default(dir, core);
791
792
  await runMigrations(dir);
@@ -836,6 +837,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
836
837
  if (import_fs2.default.existsSync(import_node_path8.default.join(dir, ".env"))) {
837
838
  import_dotenv.default.config({ path: import_node_path8.default.join(dir, ".env") });
838
839
  }
840
+ await verifyRequiredFieldsAreInCatalogConfigFile(dir);
839
841
  copyCore();
840
842
  const isBackstagePluginEnabled = await (0, import_license.isFeatureEnabled)(
841
843
  "@eventcatalog/backstage-plugin-eventcatalog",
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-PPPLJBMY.js";
10
- import "./chunk-A4YYUOP3.js";
9
+ } from "./chunk-JSN23OLK.js";
10
+ import "./chunk-ZCFMFJHJ.js";
11
11
  import "./chunk-4UVFXLPI.js";
12
12
  import {
13
13
  runMigrations
@@ -22,14 +22,16 @@ import {
22
22
  } from "./chunk-5VBIXL6C.js";
23
23
  import {
24
24
  generate
25
- } from "./chunk-NFOQGS5M.js";
25
+ } from "./chunk-LDDMUYZF.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-3MOOTYNZ.js";
28
+ } from "./chunk-U5RPGH3R.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-2FXRNA5L.js";
32
- import "./chunk-UPONRQSN.js";
31
+ } from "./chunk-SORCY37E.js";
32
+ import {
33
+ verifyRequiredFieldsAreInCatalogConfigFile
34
+ } from "./chunk-UPONRQSN.js";
33
35
 
34
36
  // src/eventcatalog.ts
35
37
  import { Command } from "commander";
@@ -139,6 +141,7 @@ program.command("dev").description("Run development server of EventCatalog").opt
139
141
  logger.info(`CATALOG_DIR: ${core}`, "debug");
140
142
  }
141
143
  if (options.forceRecreate) clearCore();
144
+ await verifyRequiredFieldsAreInCatalogConfigFile(dir);
142
145
  copyCore();
143
146
  await resolve_catalog_dependencies_default(dir, core);
144
147
  await runMigrations(dir);
@@ -189,6 +192,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
189
192
  if (fs.existsSync(path.join(dir, ".env"))) {
190
193
  dotenv.config({ path: path.join(dir, ".env") });
191
194
  }
195
+ await verifyRequiredFieldsAreInCatalogConfigFile(dir);
192
196
  copyCore();
193
197
  const isBackstagePluginEnabled = await isFeatureEnabled(
194
198
  "@eventcatalog/backstage-plugin-eventcatalog",
package/dist/generate.cjs CHANGED
@@ -73,7 +73,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
73
73
  var import_picocolors = __toESM(require("picocolors"), 1);
74
74
 
75
75
  // package.json
76
- var version = "3.12.5";
76
+ var version = "3.12.6-beta.1";
77
77
 
78
78
  // src/constants.ts
79
79
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-NFOQGS5M.js";
4
- import "./chunk-3MOOTYNZ.js";
5
- import "./chunk-2FXRNA5L.js";
3
+ } from "./chunk-LDDMUYZF.js";
4
+ import "./chunk-U5RPGH3R.js";
5
+ import "./chunk-SORCY37E.js";
6
6
  import "./chunk-UPONRQSN.js";
7
7
  export {
8
8
  generate
@@ -36,7 +36,7 @@ module.exports = __toCommonJS(cli_logger_exports);
36
36
  var import_picocolors = __toESM(require("picocolors"), 1);
37
37
 
38
38
  // package.json
39
- var version = "3.12.5";
39
+ var version = "3.12.6-beta.1";
40
40
 
41
41
  // src/constants.ts
42
42
  var VERSION = version;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  logger
3
- } from "../chunk-3MOOTYNZ.js";
4
- import "../chunk-2FXRNA5L.js";
3
+ } from "../chunk-U5RPGH3R.js";
4
+ import "../chunk-SORCY37E.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -10,11 +10,23 @@ import path from 'path';
10
10
  import { customPagesSchema } from './enterprise/collections';
11
11
 
12
12
  export const projectDirBase = (() => {
13
- if (process.platform === 'win32') {
14
- const projectDirPath = process.env.PROJECT_DIR!.replace(/\\/g, '/');
13
+ const projectDir = process.env.PROJECT_DIR;
14
+ const catalogDir = process.env.CATALOG_DIR;
15
+
16
+ // If CATALOG_DIR is set (monorepo mode), compute relative path from catalog to project
17
+ // Otherwise fall back to absolute path (standalone mode)
18
+ if (catalogDir && projectDir) {
19
+ const relativePath = path.relative(catalogDir, projectDir);
20
+ // Ensure forward slashes for consistency
21
+ return relativePath.replace(/\\/g, '/');
22
+ }
23
+
24
+ // Fallback to absolute path
25
+ if (process.platform === 'win32' && projectDir) {
26
+ const projectDirPath = projectDir.replace(/\\/g, '/');
15
27
  return projectDirPath.startsWith('/') ? projectDirPath : `/${projectDirPath}`;
16
28
  }
17
- return process.env.PROJECT_DIR;
29
+ return projectDir;
18
30
  })();
19
31
 
20
32
  const pages = defineCollection({
@@ -477,6 +477,7 @@ const canPageBeEmbedded = isEmbedEnabled();
477
477
  });
478
478
 
479
479
  content.classList.remove('ml-14');
480
+ content.classList.remove('max-h-content');
480
481
  return;
481
482
  }
482
483
 
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/event-catalog/eventcatalog.git"
7
7
  },
8
8
  "type": "module",
9
- "version": "3.12.5",
9
+ "version": "3.12.6-beta.1",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -152,6 +152,8 @@
152
152
  "format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json,astro}\"",
153
153
  "format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\"",
154
154
  "lint:catalog": "pnpm dlx @eventcatalog/linter examples/default",
155
- "check": "node scripts/check-types.js"
155
+ "check": "node scripts/check-types.js",
156
+ "turbo:test": "turbo run test",
157
+ "turbo:build": "turbo run build:bin"
156
158
  }
157
159
  }