@eventcatalog/core 4.7.6 → 4.7.7
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/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/{chunk-RZAJNR7O.js → chunk-5ASZ2V3F.js} +1 -1
- package/dist/{chunk-MNAPKH63.js → chunk-AU344G4Q.js} +1 -1
- package/dist/{chunk-Q534DWPZ.js → chunk-JBNUHFT4.js} +1 -1
- package/dist/{chunk-YXANZO6Y.js → chunk-MQEV3YUV.js} +1 -1
- package/dist/{chunk-6BBLQLGL.js → chunk-QYK2OJMS.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- 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/plugins/likec4.ts +24 -3
- package/package.json +1 -1
|
@@ -140,7 +140,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
140
140
|
var import_os = __toESM(require("os"), 1);
|
|
141
141
|
|
|
142
142
|
// package.json
|
|
143
|
-
var version = "4.7.
|
|
143
|
+
var version = "4.7.7";
|
|
144
144
|
|
|
145
145
|
// src/constants.ts
|
|
146
146
|
var VERSION = version;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-5ASZ2V3F.js";
|
|
4
|
+
import "../chunk-MQEV3YUV.js";
|
|
5
5
|
import "../chunk-K2XIENVT.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-JBNUHFT4.js";
|
|
7
7
|
import "../chunk-6QENHZZP.js";
|
|
8
8
|
export {
|
|
9
9
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -144,7 +144,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
|
|
|
144
144
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
145
145
|
|
|
146
146
|
// package.json
|
|
147
|
-
var version = "4.7.
|
|
147
|
+
var version = "4.7.7";
|
|
148
148
|
|
|
149
149
|
// src/constants.ts
|
|
150
150
|
var VERSION = version;
|
package/dist/eventcatalog.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
import "./chunk-CA4U2JP7.js";
|
|
5
5
|
import {
|
|
6
6
|
log_build_default
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-5ASZ2V3F.js";
|
|
8
|
+
import "./chunk-MQEV3YUV.js";
|
|
9
9
|
import "./chunk-K2XIENVT.js";
|
|
10
10
|
import {
|
|
11
11
|
FederationConflictError,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
} from "./chunk-B7HCX5HM.js";
|
|
32
32
|
import {
|
|
33
33
|
generate
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-QYK2OJMS.js";
|
|
35
35
|
import {
|
|
36
36
|
logger
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-AU344G4Q.js";
|
|
38
38
|
import {
|
|
39
39
|
resolve_catalog_dependencies_default
|
|
40
40
|
} from "./chunk-LHR4G2UO.js";
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
import "./chunk-W5JQON7Z.js";
|
|
55
55
|
import {
|
|
56
56
|
VERSION
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-JBNUHFT4.js";
|
|
58
58
|
import {
|
|
59
59
|
linkCoreNodeModules,
|
|
60
60
|
resolveInstalledCoreNodeModules
|
package/dist/generate.cjs
CHANGED
|
@@ -108,7 +108,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
|
|
|
108
108
|
var import_picocolors = __toESM(require("picocolors"), 1);
|
|
109
109
|
|
|
110
110
|
// package.json
|
|
111
|
-
var version = "4.7.
|
|
111
|
+
var version = "4.7.7";
|
|
112
112
|
|
|
113
113
|
// src/constants.ts
|
|
114
114
|
var VERSION = version;
|
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-QYK2OJMS.js";
|
|
4
|
+
import "./chunk-AU344G4Q.js";
|
|
5
|
+
import "./chunk-JBNUHFT4.js";
|
|
6
6
|
import "./chunk-6QENHZZP.js";
|
|
7
7
|
export {
|
|
8
8
|
generate
|
package/dist/utils/cli-logger.js
CHANGED
|
@@ -28,9 +28,10 @@ export const eventCatalogLikeC4 = async (workspaceDir: string): Promise<Plugin[]
|
|
|
28
28
|
return [registry];
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
const LikeC4VitePlugin = await
|
|
31
|
+
const { LikeC4VitePlugin, resolveLikeC4Dependency } = await loadLikeC4(workspaceDir);
|
|
32
32
|
|
|
33
33
|
return [
|
|
34
|
+
likeC4DependencyResolver(resolveLikeC4Dependency),
|
|
34
35
|
LikeC4VitePlugin({
|
|
35
36
|
workspace: workspaceDir,
|
|
36
37
|
}),
|
|
@@ -47,7 +48,7 @@ const hasLikeC4Sources = (workspaceDir: string) => {
|
|
|
47
48
|
);
|
|
48
49
|
};
|
|
49
50
|
|
|
50
|
-
const
|
|
51
|
+
const loadLikeC4 = async (workspaceDir: string) => {
|
|
51
52
|
try {
|
|
52
53
|
const requireFromCatalog = createRequire(join(workspaceDir, 'package.json'));
|
|
53
54
|
const likeC4VitePluginPath = requireFromCatalog.resolve('likec4/vite-plugin');
|
|
@@ -57,12 +58,32 @@ const loadLikeC4VitePlugin = async (workspaceDir: string) => {
|
|
|
57
58
|
throw new Error('The installed likec4 package does not export LikeC4VitePlugin from likec4/vite-plugin.');
|
|
58
59
|
}
|
|
59
60
|
|
|
60
|
-
return
|
|
61
|
+
return {
|
|
62
|
+
LikeC4VitePlugin: likeC4.LikeC4VitePlugin,
|
|
63
|
+
resolveLikeC4Dependency: (id: string) => requireFromCatalog.resolve(id),
|
|
64
|
+
};
|
|
61
65
|
} catch (error) {
|
|
62
66
|
throw new Error(`${likeC4InstallMessage}\n\n${error instanceof Error ? error.message : String(error)}`);
|
|
63
67
|
}
|
|
64
68
|
};
|
|
65
69
|
|
|
70
|
+
const likeC4DependencyResolver = (resolveLikeC4Dependency: (id: string) => string): Plugin => ({
|
|
71
|
+
name: 'eventcatalog-likec4-dependency-resolver',
|
|
72
|
+
enforce: 'pre',
|
|
73
|
+
|
|
74
|
+
resolveId(id) {
|
|
75
|
+
if (!id.startsWith('likec4/')) {
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
try {
|
|
80
|
+
return resolveLikeC4Dependency(id);
|
|
81
|
+
} catch {
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
|
|
66
87
|
const likeC4ProjectRegistry = (workspaceDir: string, enabled: boolean): Plugin => {
|
|
67
88
|
let discoveredProjects: string[] = [];
|
|
68
89
|
|