@eventcatalog/core 2.35.3 → 2.35.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.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -2
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-BQ5AYBCA.js → chunk-OGH4IHXU.js} +1 -1
- package/dist/{chunk-66QXZSU5.js → chunk-TPPFSMZQ.js} +1 -1
- package/dist/{chunk-DGPXNBAU.js → chunk-Z6HUQ55R.js} +1 -2
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +24 -3
- package/dist/eventcatalog.js +26 -4
- package/package.json +1 -1
|
@@ -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 = "2.35.
|
|
109
|
+
var version = "2.35.5";
|
|
110
110
|
|
|
111
111
|
// src/constants.ts
|
|
112
112
|
var VERSION = version;
|
|
@@ -152,7 +152,6 @@ var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScal
|
|
|
152
152
|
if (isBackstagePluginEnabled) {
|
|
153
153
|
generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
|
|
154
154
|
}
|
|
155
|
-
console.log("generatorNames", generatorNames);
|
|
156
155
|
await raiseEvent({
|
|
157
156
|
command: "build",
|
|
158
157
|
org: organizationName,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-Z6HUQ55R.js";
|
|
4
|
+
import "../chunk-TPPFSMZQ.js";
|
|
5
|
+
import "../chunk-OGH4IHXU.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
raiseEvent
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TPPFSMZQ.js";
|
|
4
4
|
import {
|
|
5
5
|
getEventCatalogConfigFile,
|
|
6
6
|
verifyRequiredFieldsAreInCatalogConfigFile
|
|
@@ -23,7 +23,6 @@ var main = async (projectDir, { isEventCatalogStarterEnabled, isEventCatalogScal
|
|
|
23
23
|
if (isBackstagePluginEnabled) {
|
|
24
24
|
generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
|
|
25
25
|
}
|
|
26
|
-
console.log("generatorNames", generatorNames);
|
|
27
26
|
await raiseEvent({
|
|
28
27
|
command: "build",
|
|
29
28
|
org: organizationName,
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -157,7 +157,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
157
157
|
var import_os = __toESM(require("os"), 1);
|
|
158
158
|
|
|
159
159
|
// package.json
|
|
160
|
-
var version = "2.35.
|
|
160
|
+
var version = "2.35.5";
|
|
161
161
|
|
|
162
162
|
// src/constants.ts
|
|
163
163
|
var VERSION = version;
|
|
@@ -203,7 +203,6 @@ var main = async (projectDir, { isEventCatalogStarterEnabled: isEventCatalogStar
|
|
|
203
203
|
if (isBackstagePluginEnabled2) {
|
|
204
204
|
generatorNames.push("@eventcatalog/backstage-plugin-eventcatalog");
|
|
205
205
|
}
|
|
206
|
-
console.log("generatorNames", generatorNames);
|
|
207
206
|
await raiseEvent({
|
|
208
207
|
command: "build",
|
|
209
208
|
org: organizationName,
|
|
@@ -792,6 +791,20 @@ var previewCatalog = ({
|
|
|
792
791
|
}
|
|
793
792
|
);
|
|
794
793
|
};
|
|
794
|
+
var startServerCatalog = ({
|
|
795
|
+
command,
|
|
796
|
+
canEmbedPages = false,
|
|
797
|
+
isEventCatalogStarter = false,
|
|
798
|
+
isEventCatalogScale = false
|
|
799
|
+
}) => {
|
|
800
|
+
(0, import_node_child_process.execSync)(
|
|
801
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} node ./dist/server/entry.mjs`,
|
|
802
|
+
{
|
|
803
|
+
cwd: dir,
|
|
804
|
+
stdio: "inherit"
|
|
805
|
+
}
|
|
806
|
+
);
|
|
807
|
+
};
|
|
795
808
|
program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
796
809
|
console.log("Starting preview of your build...");
|
|
797
810
|
if (import_fs2.default.existsSync(import_node_path7.default.join(dir, ".env"))) {
|
|
@@ -811,9 +824,17 @@ program.command("start").description("Serves the contents of your eventcatalog b
|
|
|
811
824
|
const canEmbedPages = await isBackstagePluginEnabled();
|
|
812
825
|
const isEventCatalogStarter = await isEventCatalogStarterEnabled();
|
|
813
826
|
const isEventCatalogScale = await isEventCatalogScaleEnabled();
|
|
814
|
-
|
|
827
|
+
const isServerOutput = await isOutputServer();
|
|
828
|
+
if (isServerOutput) {
|
|
829
|
+
startServerCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
|
|
830
|
+
} else {
|
|
831
|
+
previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
|
|
832
|
+
}
|
|
815
833
|
});
|
|
816
834
|
program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
|
|
835
|
+
if (import_fs2.default.existsSync(import_node_path7.default.join(dir, ".env"))) {
|
|
836
|
+
import_dotenv.default.config({ path: import_node_path7.default.join(dir, ".env") });
|
|
837
|
+
}
|
|
817
838
|
await generate(dir);
|
|
818
839
|
});
|
|
819
840
|
program.addHelpText(
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,15 +6,15 @@ import {
|
|
|
6
6
|
} from "./chunk-DCLTVJDP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-Z6HUQ55R.js";
|
|
10
|
+
import "./chunk-TPPFSMZQ.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro,
|
|
13
13
|
checkAndConvertMdToMdx
|
|
14
14
|
} from "./chunk-5ZG43YD2.js";
|
|
15
15
|
import {
|
|
16
16
|
VERSION
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OGH4IHXU.js";
|
|
18
18
|
import {
|
|
19
19
|
isBackstagePluginEnabled,
|
|
20
20
|
isEventCatalogScaleEnabled,
|
|
@@ -217,6 +217,20 @@ var previewCatalog = ({
|
|
|
217
217
|
}
|
|
218
218
|
);
|
|
219
219
|
};
|
|
220
|
+
var startServerCatalog = ({
|
|
221
|
+
command,
|
|
222
|
+
canEmbedPages = false,
|
|
223
|
+
isEventCatalogStarter = false,
|
|
224
|
+
isEventCatalogScale = false
|
|
225
|
+
}) => {
|
|
226
|
+
execSync(
|
|
227
|
+
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} node ./dist/server/entry.mjs`,
|
|
228
|
+
{
|
|
229
|
+
cwd: dir,
|
|
230
|
+
stdio: "inherit"
|
|
231
|
+
}
|
|
232
|
+
);
|
|
233
|
+
};
|
|
220
234
|
program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
221
235
|
console.log("Starting preview of your build...");
|
|
222
236
|
if (fs.existsSync(path.join(dir, ".env"))) {
|
|
@@ -236,9 +250,17 @@ program.command("start").description("Serves the contents of your eventcatalog b
|
|
|
236
250
|
const canEmbedPages = await isBackstagePluginEnabled();
|
|
237
251
|
const isEventCatalogStarter = await isEventCatalogStarterEnabled();
|
|
238
252
|
const isEventCatalogScale = await isEventCatalogScaleEnabled();
|
|
239
|
-
|
|
253
|
+
const isServerOutput = await isOutputServer();
|
|
254
|
+
if (isServerOutput) {
|
|
255
|
+
startServerCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
|
|
256
|
+
} else {
|
|
257
|
+
previewCatalog({ command, canEmbedPages, isEventCatalogStarter, isEventCatalogScale });
|
|
258
|
+
}
|
|
240
259
|
});
|
|
241
260
|
program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
|
|
261
|
+
if (fs.existsSync(path.join(dir, ".env"))) {
|
|
262
|
+
dotenv.config({ path: path.join(dir, ".env") });
|
|
263
|
+
}
|
|
242
264
|
await generate(dir);
|
|
243
265
|
});
|
|
244
266
|
program.addHelpText(
|