@eventcatalog/core 2.21.3 → 2.21.4
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-Y3RLX2GF.js → chunk-L7JLMGF6.js} +1 -1
- package/dist/{chunk-N4Q2I3OP.js → chunk-NN4YAIZA.js} +1 -1
- package/dist/{chunk-LF6C2UBE.js → chunk-QXU52AKZ.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/eventcatalog.cjs +8 -7
- package/dist/eventcatalog.js +10 -9
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
log_build_default
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-NN4YAIZA.js";
|
|
4
|
+
import "../chunk-L7JLMGF6.js";
|
|
5
|
+
import "../chunk-QXU52AKZ.js";
|
|
6
6
|
import "../chunk-E7TXTI7G.js";
|
|
7
7
|
export {
|
|
8
8
|
log_build_default as default
|
package/dist/constants.cjs
CHANGED
package/dist/constants.js
CHANGED
package/dist/eventcatalog.cjs
CHANGED
|
@@ -161,7 +161,7 @@ var import_axios = __toESM(require("axios"), 1);
|
|
|
161
161
|
var import_os = __toESM(require("os"), 1);
|
|
162
162
|
|
|
163
163
|
// package.json
|
|
164
|
-
var version = "2.21.
|
|
164
|
+
var version = "2.21.4";
|
|
165
165
|
|
|
166
166
|
// src/constants.ts
|
|
167
167
|
var VERSION = version;
|
|
@@ -677,8 +677,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
|
|
|
677
677
|
}
|
|
678
678
|
);
|
|
679
679
|
});
|
|
680
|
-
var previewCatalog =
|
|
681
|
-
const canEmbedPages = await isBackstagePluginEnabled();
|
|
680
|
+
var previewCatalog = ({ command, canEmbedPages = false }) => {
|
|
682
681
|
(0, import_node_child_process.execSync)(
|
|
683
682
|
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
|
|
684
683
|
{
|
|
@@ -687,13 +686,15 @@ var previewCatalog = async ({ command }) => {
|
|
|
687
686
|
}
|
|
688
687
|
);
|
|
689
688
|
};
|
|
690
|
-
program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
689
|
+
program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
691
690
|
console.log("Starting preview of your build...");
|
|
692
|
-
|
|
691
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
692
|
+
previewCatalog({ command, canEmbedPages });
|
|
693
693
|
});
|
|
694
|
-
program.command("start").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
694
|
+
program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
695
695
|
console.log("Starting preview of your build...");
|
|
696
|
-
|
|
696
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
697
|
+
previewCatalog({ command, canEmbedPages });
|
|
697
698
|
});
|
|
698
699
|
program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
|
|
699
700
|
await generate(dir);
|
package/dist/eventcatalog.js
CHANGED
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
} from "./chunk-OW2FQPYP.js";
|
|
7
7
|
import {
|
|
8
8
|
log_build_default
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-NN4YAIZA.js";
|
|
10
|
+
import "./chunk-L7JLMGF6.js";
|
|
11
11
|
import {
|
|
12
12
|
catalogToAstro
|
|
13
13
|
} from "./chunk-CXKIF3EI.js";
|
|
14
14
|
import {
|
|
15
15
|
VERSION
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-QXU52AKZ.js";
|
|
17
17
|
import {
|
|
18
18
|
isBackstagePluginEnabled
|
|
19
19
|
} from "./chunk-XMDPVKIJ.js";
|
|
@@ -148,8 +148,7 @@ program.command("build").description("Run build of EventCatalog").action(async (
|
|
|
148
148
|
}
|
|
149
149
|
);
|
|
150
150
|
});
|
|
151
|
-
var previewCatalog =
|
|
152
|
-
const canEmbedPages = await isBackstagePluginEnabled();
|
|
151
|
+
var previewCatalog = ({ command, canEmbedPages = false }) => {
|
|
153
152
|
execSync(
|
|
154
153
|
`cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} npx astro preview ${command.args.join(" ").trim()}`,
|
|
155
154
|
{
|
|
@@ -158,13 +157,15 @@ var previewCatalog = async ({ command }) => {
|
|
|
158
157
|
}
|
|
159
158
|
);
|
|
160
159
|
};
|
|
161
|
-
program.command("preview").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
160
|
+
program.command("preview").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
162
161
|
console.log("Starting preview of your build...");
|
|
163
|
-
|
|
162
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
163
|
+
previewCatalog({ command, canEmbedPages });
|
|
164
164
|
});
|
|
165
|
-
program.command("start").description("Serves the contents of your eventcatalog build directory").action((options, command) => {
|
|
165
|
+
program.command("start").description("Serves the contents of your eventcatalog build directory").action(async (options, command) => {
|
|
166
166
|
console.log("Starting preview of your build...");
|
|
167
|
-
|
|
167
|
+
const canEmbedPages = await isBackstagePluginEnabled();
|
|
168
|
+
previewCatalog({ command, canEmbedPages });
|
|
168
169
|
});
|
|
169
170
|
program.command("generate [siteDir]").description("Start the generator scripts.").action(async () => {
|
|
170
171
|
await generate(dir);
|