@eventcatalog/core 3.12.4 → 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 +1 -1
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/catalog-to-astro-content-directory.cjs +1 -1
- package/dist/{chunk-CNZIZVYU.js → chunk-JSN23OLK.js} +1 -1
- package/dist/{chunk-I3KB3TA2.js → chunk-LDDMUYZF.js} +1 -1
- package/dist/{chunk-VN4COWRH.js → chunk-SORCY37E.js} +1 -1
- package/dist/{chunk-ZNNK5M5S.js → chunk-U5RPGH3R.js} +1 -1
- package/dist/{chunk-RZYDZLNB.js → chunk-ZCFMFJHJ.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +4 -2
- package/dist/eventcatalog.js +10 -6
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/content.config.ts +15 -3
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +1 -0
- package/package.json +4 -9
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-JSN23OLK.js";
|
|
4
|
+
import "../chunk-ZCFMFJHJ.js";
|
|
5
5
|
import "../chunk-4UVFXLPI.js";
|
|
6
|
-
import "../chunk-
|
|
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
|
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -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.
|
|
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",
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
} from "./chunk-PLNJC7NZ.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
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-
|
|
25
|
+
} from "./chunk-LDDMUYZF.js";
|
|
26
26
|
import {
|
|
27
27
|
logger
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-U5RPGH3R.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
32
|
-
import
|
|
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
package/dist/generate.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generate
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
5
|
-
import "./chunk-
|
|
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
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -10,11 +10,23 @@ import path from 'path';
|
|
|
10
10
|
import { customPagesSchema } from './enterprise/collections';
|
|
11
11
|
|
|
12
12
|
export const projectDirBase = (() => {
|
|
13
|
-
|
|
14
|
-
|
|
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
|
|
29
|
+
return projectDir;
|
|
18
30
|
})();
|
|
19
31
|
|
|
20
32
|
const pages = defineCollection({
|
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.
|
|
9
|
+
"version": "3.12.6-beta.1",
|
|
10
10
|
"publishConfig": {
|
|
11
11
|
"access": "public"
|
|
12
12
|
},
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"@asyncapi/parser": "3.4.0",
|
|
32
32
|
"@asyncapi/react-component": "2.4.3",
|
|
33
33
|
"@auth/core": "^0.37.4",
|
|
34
|
-
"@eventcatalog/generator-ai": "^1.1.0",
|
|
35
34
|
"@eventcatalog/license": "^0.0.7",
|
|
36
35
|
"@eventcatalog/linter": "^0.0.2",
|
|
37
36
|
"@eventcatalog/sdk": "^2.11.0",
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
52
51
|
"@scalar/api-reference-react": "^0.4.37",
|
|
53
52
|
"@tailwindcss/typography": "^0.5.13",
|
|
54
|
-
"@tanstack/react-query": "^5.74.3",
|
|
55
53
|
"@tanstack/react-table": "^8.17.3",
|
|
56
54
|
"@xyflow/react": "^12.3.6",
|
|
57
55
|
"ai": "^6.0.17",
|
|
@@ -66,7 +64,6 @@
|
|
|
66
64
|
"concurrently": "^8.2.2",
|
|
67
65
|
"cross-env": "^7.0.3",
|
|
68
66
|
"dagre": "^0.8.5",
|
|
69
|
-
"date-fns": "^4.1.0",
|
|
70
67
|
"diff": "^8.0.3",
|
|
71
68
|
"diff2html": "^3.4.56",
|
|
72
69
|
"dotenv": "^16.5.0",
|
|
@@ -93,7 +90,6 @@
|
|
|
93
90
|
"react-syntax-highlighter": "^15.6.6",
|
|
94
91
|
"rehype-autolink-headings": "^7.1.0",
|
|
95
92
|
"rehype-expressive-code": "^0.41.3",
|
|
96
|
-
"rehype-raw": "^7.0.0",
|
|
97
93
|
"rehype-slug": "^6.0.0",
|
|
98
94
|
"remark-comment": "^1.0.0",
|
|
99
95
|
"remark-directive": "^3.0.0",
|
|
@@ -103,7 +99,6 @@
|
|
|
103
99
|
"shelljs": "^0.9.0",
|
|
104
100
|
"svg-pan-zoom": "^3.6.2",
|
|
105
101
|
"tailwindcss": "^3.4.3",
|
|
106
|
-
"tw-animate-css": "^1.4.0",
|
|
107
102
|
"typescript": "^5.4.5",
|
|
108
103
|
"unist-util-visit": "^5.0.0",
|
|
109
104
|
"update-notifier": "^7.3.1",
|
|
@@ -113,7 +108,6 @@
|
|
|
113
108
|
"devDependencies": {
|
|
114
109
|
"@astrojs/check": "^0.9.6",
|
|
115
110
|
"@changesets/cli": "^2.27.5",
|
|
116
|
-
"@playwright/test": "^1.48.1",
|
|
117
111
|
"@types/dagre": "^0.7.52",
|
|
118
112
|
"@types/diff": "^5.2.2",
|
|
119
113
|
"@types/js-yaml": "^4.0.9",
|
|
@@ -142,7 +136,6 @@
|
|
|
142
136
|
"build:bin": "tsup",
|
|
143
137
|
"test": "cross-env DISABLE_EVENTCATALOG_CACHE=true vitest",
|
|
144
138
|
"test:ci": "node scripts/ci/test.js",
|
|
145
|
-
"test:e2e": "playwright test",
|
|
146
139
|
"start": "astro dev",
|
|
147
140
|
"build": "astro build",
|
|
148
141
|
"build:cd": "node scripts/build-ci.js",
|
|
@@ -159,6 +152,8 @@
|
|
|
159
152
|
"format": "prettier --config .prettierrc --write \"**/*.{js,jsx,ts,tsx,json,astro}\"",
|
|
160
153
|
"format:diff": "prettier --config .prettierrc --list-different \"**/*.{js,jsx,ts,tsx,json,astro}\"",
|
|
161
154
|
"lint:catalog": "pnpm dlx @eventcatalog/linter examples/default",
|
|
162
|
-
"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"
|
|
163
158
|
}
|
|
164
159
|
}
|