@eventcatalog/core 3.15.0-beta.0 → 3.15.0-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.
@@ -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.15.0-beta.0";
40
+ var version = "3.15.0-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-7RPTQBIY.js";
4
- import "../chunk-FRILQLHV.js";
3
+ } from "../chunk-GPD6XYQI.js";
4
+ import "../chunk-SEJTXM5L.js";
5
5
  export {
6
6
  raiseEvent
7
7
  };
@@ -111,7 +111,7 @@ var import_axios = __toESM(require("axios"), 1);
111
111
  var import_os = __toESM(require("os"), 1);
112
112
 
113
113
  // package.json
114
- var version = "3.15.0-beta.0";
114
+ var version = "3.15.0-beta.1";
115
115
 
116
116
  // src/constants.ts
117
117
  var VERSION = version;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  log_build_default
3
- } from "../chunk-VUARMJ2E.js";
4
- import "../chunk-7RPTQBIY.js";
3
+ } from "../chunk-UFOXV4FN.js";
4
+ import "../chunk-GPD6XYQI.js";
5
5
  import "../chunk-4UVFXLPI.js";
6
- import "../chunk-FRILQLHV.js";
6
+ import "../chunk-SEJTXM5L.js";
7
7
  import "../chunk-5T63CXKU.js";
8
8
  export {
9
9
  log_build_default as default
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./chunk-4JTLFCQ7.js";
3
+ } from "./chunk-ZP4JNCSQ.js";
4
4
  import {
5
5
  cleanup,
6
6
  getEventCatalogConfigFile
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-FRILQLHV.js";
3
+ } from "./chunk-SEJTXM5L.js";
4
4
 
5
5
  // src/analytics/analytics.js
6
6
  import axios from "axios";
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "3.15.0-beta.0";
2
+ var version = "3.15.0-beta.1";
3
3
 
4
4
  // src/constants.ts
5
5
  var VERSION = version;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  raiseEvent
3
- } from "./chunk-7RPTQBIY.js";
3
+ } from "./chunk-GPD6XYQI.js";
4
4
  import {
5
5
  countResources,
6
6
  serializeCounts
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  VERSION
3
- } from "./chunk-FRILQLHV.js";
3
+ } from "./chunk-SEJTXM5L.js";
4
4
 
5
5
  // src/utils/cli-logger.ts
6
6
  import pc from "picocolors";
@@ -25,7 +25,7 @@ __export(constants_exports, {
25
25
  module.exports = __toCommonJS(constants_exports);
26
26
 
27
27
  // package.json
28
- var version = "3.15.0-beta.0";
28
+ var version = "3.15.0-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-FRILQLHV.js";
3
+ } from "./chunk-SEJTXM5L.js";
4
4
  export {
5
5
  VERSION
6
6
  };
@@ -115,7 +115,7 @@ var verifyRequiredFieldsAreInCatalogConfigFile = async (projectDirectory) => {
115
115
  var import_picocolors = __toESM(require("picocolors"), 1);
116
116
 
117
117
  // package.json
118
- var version = "3.15.0-beta.0";
118
+ var version = "3.15.0-beta.1";
119
119
 
120
120
  // src/constants.ts
121
121
  var VERSION = version;
@@ -766,6 +766,67 @@ var startDevPrewarm = ({
766
766
  };
767
767
  setTimeout(tick, initialDelayMs);
768
768
  };
769
+ var createAstroLineFilter = () => {
770
+ return (line) => {
771
+ return line.includes("[glob-loader]") || /The collection.*does not exist/.test(line);
772
+ };
773
+ };
774
+ var runCommandWithFilteredOutput = async ({
775
+ command,
776
+ cwd,
777
+ env,
778
+ shouldFilterLine
779
+ }) => {
780
+ await new Promise((resolve2, reject) => {
781
+ const child = (0, import_node_child_process.spawn)(command, {
782
+ cwd,
783
+ env: {
784
+ ...process.env,
785
+ ...env
786
+ },
787
+ shell: true,
788
+ stdio: ["inherit", "pipe", "pipe"]
789
+ });
790
+ let stdoutBuffer = "";
791
+ let stderrBuffer = "";
792
+ const flush = (buffer, writer, isFinal = false) => {
793
+ const lines = buffer.split("\n");
794
+ const remaining = isFinal ? "" : lines.pop() ?? "";
795
+ for (const rawLine of lines) {
796
+ const line = rawLine.replace(/\r/g, "");
797
+ if (line.length === 0) {
798
+ writer.write("\n");
799
+ continue;
800
+ }
801
+ if (!shouldFilterLine(line)) {
802
+ writer.write(`${rawLine}
803
+ `);
804
+ }
805
+ }
806
+ return remaining;
807
+ };
808
+ child.stdout.on("data", (chunk) => {
809
+ stdoutBuffer += chunk.toString();
810
+ stdoutBuffer = flush(stdoutBuffer, process.stdout);
811
+ });
812
+ child.stderr.on("data", (chunk) => {
813
+ stderrBuffer += chunk.toString();
814
+ stderrBuffer = flush(stderrBuffer, process.stderr);
815
+ });
816
+ child.on("error", (error) => {
817
+ reject(error);
818
+ });
819
+ child.on("close", (code) => {
820
+ stdoutBuffer = flush(stdoutBuffer, process.stdout, true);
821
+ stderrBuffer = flush(stderrBuffer, process.stderr, true);
822
+ if (code === 0) {
823
+ resolve2();
824
+ return;
825
+ }
826
+ reject(new Error(`Command failed with exit code ${code}: ${command}`));
827
+ });
828
+ });
829
+ };
769
830
  var copyCore = () => {
770
831
  ensureDir(core);
771
832
  if (eventCatalogDir === core) {
@@ -922,16 +983,19 @@ program.command("build").description("Run build of EventCatalog").action(async (
922
983
  await runMigrations(dir);
923
984
  await catalogToAstro(dir, core);
924
985
  checkForUpdate();
925
- const windowsCommand = `npx astro build ${command.args.join(" ").trim()} | findstr /V "The collection"`;
926
- const unixCommand = `bash -c "set -o pipefail; npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v -e \\"\\\\[router\\\\]\\" -e \\"The collection.*does not exist\\""`;
927
- const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
928
- (0, import_node_child_process.execSync)(
929
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
930
- {
931
- cwd: core,
932
- stdio: "inherit"
933
- }
934
- );
986
+ const args = command.args.join(" ").trim();
987
+ await runCommandWithFilteredOutput({
988
+ command: `npx astro build ${args}`,
989
+ cwd: core,
990
+ env: {
991
+ PROJECT_DIR: dir,
992
+ CATALOG_DIR: core,
993
+ ENABLE_EMBED: String(canEmbedPages),
994
+ EVENTCATALOG_STARTER: String(isEventCatalogStarter),
995
+ EVENTCATALOG_SCALE: String(isEventCatalogScale)
996
+ },
997
+ shouldFilterLine: createAstroLineFilter()
998
+ });
935
999
  });
936
1000
  var previewCatalog = ({
937
1001
  command,
@@ -6,8 +6,8 @@ import {
6
6
  } from "./chunk-PLNJC7NZ.js";
7
7
  import {
8
8
  log_build_default
9
- } from "./chunk-VUARMJ2E.js";
10
- import "./chunk-7RPTQBIY.js";
9
+ } from "./chunk-UFOXV4FN.js";
10
+ import "./chunk-GPD6XYQI.js";
11
11
  import "./chunk-4UVFXLPI.js";
12
12
  import {
13
13
  runMigrations
@@ -22,13 +22,13 @@ import {
22
22
  } from "./chunk-3KXCGYET.js";
23
23
  import {
24
24
  generate
25
- } from "./chunk-CVH4LGYA.js";
25
+ } from "./chunk-6NJZEWVT.js";
26
26
  import {
27
27
  logger
28
- } from "./chunk-4JTLFCQ7.js";
28
+ } from "./chunk-ZP4JNCSQ.js";
29
29
  import {
30
30
  VERSION
31
- } from "./chunk-FRILQLHV.js";
31
+ } from "./chunk-SEJTXM5L.js";
32
32
  import {
33
33
  getEventCatalogConfigFile,
34
34
  verifyRequiredFieldsAreInCatalogConfigFile
@@ -36,7 +36,7 @@ import {
36
36
 
37
37
  // src/eventcatalog.ts
38
38
  import { Command } from "commander";
39
- import { execSync } from "child_process";
39
+ import { execSync, spawn } from "child_process";
40
40
  import { join } from "path";
41
41
  import http from "http";
42
42
  import fs from "fs";
@@ -117,6 +117,67 @@ var startDevPrewarm = ({
117
117
  };
118
118
  setTimeout(tick, initialDelayMs);
119
119
  };
120
+ var createAstroLineFilter = () => {
121
+ return (line) => {
122
+ return line.includes("[glob-loader]") || /The collection.*does not exist/.test(line);
123
+ };
124
+ };
125
+ var runCommandWithFilteredOutput = async ({
126
+ command,
127
+ cwd,
128
+ env,
129
+ shouldFilterLine
130
+ }) => {
131
+ await new Promise((resolve, reject) => {
132
+ const child = spawn(command, {
133
+ cwd,
134
+ env: {
135
+ ...process.env,
136
+ ...env
137
+ },
138
+ shell: true,
139
+ stdio: ["inherit", "pipe", "pipe"]
140
+ });
141
+ let stdoutBuffer = "";
142
+ let stderrBuffer = "";
143
+ const flush = (buffer, writer, isFinal = false) => {
144
+ const lines = buffer.split("\n");
145
+ const remaining = isFinal ? "" : lines.pop() ?? "";
146
+ for (const rawLine of lines) {
147
+ const line = rawLine.replace(/\r/g, "");
148
+ if (line.length === 0) {
149
+ writer.write("\n");
150
+ continue;
151
+ }
152
+ if (!shouldFilterLine(line)) {
153
+ writer.write(`${rawLine}
154
+ `);
155
+ }
156
+ }
157
+ return remaining;
158
+ };
159
+ child.stdout.on("data", (chunk) => {
160
+ stdoutBuffer += chunk.toString();
161
+ stdoutBuffer = flush(stdoutBuffer, process.stdout);
162
+ });
163
+ child.stderr.on("data", (chunk) => {
164
+ stderrBuffer += chunk.toString();
165
+ stderrBuffer = flush(stderrBuffer, process.stderr);
166
+ });
167
+ child.on("error", (error) => {
168
+ reject(error);
169
+ });
170
+ child.on("close", (code) => {
171
+ stdoutBuffer = flush(stdoutBuffer, process.stdout, true);
172
+ stderrBuffer = flush(stderrBuffer, process.stderr, true);
173
+ if (code === 0) {
174
+ resolve();
175
+ return;
176
+ }
177
+ reject(new Error(`Command failed with exit code ${code}: ${command}`));
178
+ });
179
+ });
180
+ };
120
181
  var copyCore = () => {
121
182
  ensureDir(core);
122
183
  if (eventCatalogDir === core) {
@@ -273,16 +334,19 @@ program.command("build").description("Run build of EventCatalog").action(async (
273
334
  await runMigrations(dir);
274
335
  await catalogToAstro(dir, core);
275
336
  checkForUpdate();
276
- const windowsCommand = `npx astro build ${command.args.join(" ").trim()} | findstr /V "The collection"`;
277
- const unixCommand = `bash -c "set -o pipefail; npx astro build ${command.args.join(" ").trim()} 2>&1 | grep -v -e \\"\\\\[router\\\\]\\" -e \\"The collection.*does not exist\\""`;
278
- const buildCommand = process.platform === "win32" ? windowsCommand : unixCommand;
279
- execSync(
280
- `cross-env PROJECT_DIR='${dir}' CATALOG_DIR='${core}' ENABLE_EMBED=${canEmbedPages} EVENTCATALOG_STARTER=${isEventCatalogStarter} EVENTCATALOG_SCALE=${isEventCatalogScale} ${buildCommand}`,
281
- {
282
- cwd: core,
283
- stdio: "inherit"
284
- }
285
- );
337
+ const args = command.args.join(" ").trim();
338
+ await runCommandWithFilteredOutput({
339
+ command: `npx astro build ${args}`,
340
+ cwd: core,
341
+ env: {
342
+ PROJECT_DIR: dir,
343
+ CATALOG_DIR: core,
344
+ ENABLE_EMBED: String(canEmbedPages),
345
+ EVENTCATALOG_STARTER: String(isEventCatalogStarter),
346
+ EVENTCATALOG_SCALE: String(isEventCatalogScale)
347
+ },
348
+ shouldFilterLine: createAstroLineFilter()
349
+ });
286
350
  });
287
351
  var previewCatalog = ({
288
352
  command,
package/dist/generate.cjs CHANGED
@@ -78,7 +78,7 @@ var getEventCatalogConfigFile = async (projectDirectory) => {
78
78
  var import_picocolors = __toESM(require("picocolors"), 1);
79
79
 
80
80
  // package.json
81
- var version = "3.15.0-beta.0";
81
+ var version = "3.15.0-beta.1";
82
82
 
83
83
  // src/constants.ts
84
84
  var VERSION = version;
package/dist/generate.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  generate
3
- } from "./chunk-CVH4LGYA.js";
4
- import "./chunk-4JTLFCQ7.js";
5
- import "./chunk-FRILQLHV.js";
3
+ } from "./chunk-6NJZEWVT.js";
4
+ import "./chunk-ZP4JNCSQ.js";
5
+ import "./chunk-SEJTXM5L.js";
6
6
  import "./chunk-5T63CXKU.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.15.0-beta.0";
39
+ var version = "3.15.0-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-4JTLFCQ7.js";
4
- import "../chunk-FRILQLHV.js";
3
+ } from "../chunk-ZP4JNCSQ.js";
4
+ import "../chunk-SEJTXM5L.js";
5
5
  export {
6
6
  logger
7
7
  };
@@ -29,9 +29,14 @@ export const projectDirBase = (() => {
29
29
  return projectDir;
30
30
  })();
31
31
 
32
+ const withIgnoredBuildArtifacts = (patterns: string | string[]) => {
33
+ const patternList = Array.isArray(patterns) ? patterns : [patterns];
34
+ return [...patternList, '!dist/**'];
35
+ };
36
+
32
37
  const pages = defineCollection({
33
38
  loader: glob({
34
- pattern: ['**/pages/*.(md|mdx)'],
39
+ pattern: withIgnoredBuildArtifacts(['**/pages/*.(md|mdx)']),
35
40
  base: projectDirBase,
36
41
  }),
37
42
  schema: z
@@ -90,7 +95,7 @@ const resourcePointer = z.object({
90
95
 
91
96
  const changelogs = defineCollection({
92
97
  loader: glob({
93
- pattern: ['**/changelog.(md|mdx)'],
98
+ pattern: withIgnoredBuildArtifacts(['**/changelog.(md|mdx)']),
94
99
  base: projectDirBase,
95
100
  }),
96
101
  schema: z.object({
@@ -229,7 +234,7 @@ const flowStep = z
229
234
 
230
235
  const flows = defineCollection({
231
236
  loader: glob({
232
- pattern: ['**/flows/*/index.(md|mdx)', '**/flows/*/versioned/*/index.(md|mdx)'],
237
+ pattern: withIgnoredBuildArtifacts(['**/flows/*/index.(md|mdx)', '**/flows/*/versioned/*/index.(md|mdx)']),
233
238
  base: projectDirBase,
234
239
  generateId: ({ data }) => {
235
240
  return `${data.id}-${data.version}`;
@@ -317,7 +322,7 @@ const messageDetailsPanelPropertySchema = z.object({
317
322
 
318
323
  const events = defineCollection({
319
324
  loader: glob({
320
- pattern: ['**/events/*/index.(md|mdx)', '**/events/*/versioned/*/index.(md|mdx)'],
325
+ pattern: withIgnoredBuildArtifacts(['**/events/*/index.(md|mdx)', '**/events/*/versioned/*/index.(md|mdx)']),
321
326
  base: projectDirBase,
322
327
  generateId: ({ data, ...rest }) => {
323
328
  return `${data.id}-${data.version}`;
@@ -337,7 +342,7 @@ const events = defineCollection({
337
342
 
338
343
  const commands = defineCollection({
339
344
  loader: glob({
340
- pattern: ['**/commands/*/index.(md|mdx)', '**/commands/*/versioned/*/index.(md|mdx)'],
345
+ pattern: withIgnoredBuildArtifacts(['**/commands/*/index.(md|mdx)', '**/commands/*/versioned/*/index.(md|mdx)']),
341
346
  base: projectDirBase,
342
347
  generateId: ({ data }) => {
343
348
  return `${data.id}-${data.version}`;
@@ -357,7 +362,7 @@ const commands = defineCollection({
357
362
 
358
363
  const queries = defineCollection({
359
364
  loader: glob({
360
- pattern: ['**/queries/*/index.(md|mdx)', '**/queries/*/versioned/*/index.(md|mdx)'],
365
+ pattern: withIgnoredBuildArtifacts(['**/queries/*/index.(md|mdx)', '**/queries/*/versioned/*/index.(md|mdx)']),
361
366
  base: projectDirBase,
362
367
  generateId: ({ data }) => {
363
368
  return `${data.id}-${data.version}`;
@@ -389,7 +394,7 @@ const dataProductOutputPointer = z.object({
389
394
 
390
395
  const dataProducts = defineCollection({
391
396
  loader: glob({
392
- pattern: ['**/data-products/*/index.(md|mdx)', '**/data-products/*/versioned/*/index.(md|mdx)'],
397
+ pattern: withIgnoredBuildArtifacts(['**/data-products/*/index.(md|mdx)', '**/data-products/*/versioned/*/index.(md|mdx)']),
393
398
  base: projectDirBase,
394
399
  generateId: ({ data }) => {
395
400
  return `${data.id}-${data.version}`;
@@ -405,7 +410,7 @@ const dataProducts = defineCollection({
405
410
 
406
411
  const services = defineCollection({
407
412
  loader: glob({
408
- pattern: [
413
+ pattern: withIgnoredBuildArtifacts([
409
414
  'domains/*/services/*/index.(md|mdx)',
410
415
  'domains/*/services/*/versioned/*/index.(md|mdx)',
411
416
 
@@ -416,7 +421,7 @@ const services = defineCollection({
416
421
  // Capture services in the root
417
422
  'services/*/index.(md|mdx)', // ✅ Capture only services markdown files
418
423
  'services/*/versioned/*/index.(md|mdx)', // ✅ Capture versioned files inside services
419
- ],
424
+ ]),
420
425
  base: projectDirBase,
421
426
  generateId: ({ data, ...rest }) => {
422
427
  return `${data.id}-${data.version}`;
@@ -466,7 +471,7 @@ const dataClassificationEnum = z.enum(['public', 'internal', 'confidential', 're
466
471
 
467
472
  const containers = defineCollection({
468
473
  loader: glob({
469
- pattern: ['**/containers/**/index.(md|mdx)', '**/containers/**/versioned/*/index.(md|mdx)'],
474
+ pattern: withIgnoredBuildArtifacts(['**/containers/**/index.(md|mdx)', '**/containers/**/versioned/*/index.(md|mdx)']),
470
475
  base: projectDirBase,
471
476
  generateId: ({ data }) => {
472
477
  return `${data.id}-${data.version}`;
@@ -505,7 +510,7 @@ const containers = defineCollection({
505
510
  const customPages = defineCollection({
506
511
  loader: glob({
507
512
  // any number of child folders
508
- pattern: ['docs/*.(md|mdx)', 'docs/**/*.@(md|mdx)'],
513
+ pattern: withIgnoredBuildArtifacts(['docs/*.(md|mdx)', 'docs/**/*.@(md|mdx)']),
509
514
  base: projectDirBase,
510
515
  }),
511
516
  schema: customPagesSchema,
@@ -515,14 +520,14 @@ const resourceDocs = defineCollection({
515
520
  loader: glob({
516
521
  // Resource-level docs are restricted to known resource paths.
517
522
  // This avoids scanning external docs such as node_modules/**/docs.
518
- pattern: [
523
+ pattern: withIgnoredBuildArtifacts([
519
524
  '{events,commands,queries,services,flows,containers,channels,entities,data-products}/*/docs/**/*.@(md|mdx)',
520
525
  '{events,commands,queries,services,flows,containers,channels,entities,data-products}/*/versioned/*/docs/**/*.@(md|mdx)',
521
526
  'domains/*/docs/**/*.@(md|mdx)',
522
527
  'domains/*/versioned/*/docs/**/*.@(md|mdx)',
523
528
  'domains/*/subdomains/*/docs/**/*.@(md|mdx)',
524
529
  'domains/*/subdomains/*/versioned/*/docs/**/*.@(md|mdx)',
525
- ],
530
+ ]),
526
531
  base: projectDirBase,
527
532
  }),
528
533
  schema: z.object({
@@ -540,7 +545,7 @@ const resourceDocs = defineCollection({
540
545
 
541
546
  const resourceDocCategories = defineCollection({
542
547
  loader: glob({
543
- pattern: [
548
+ pattern: withIgnoredBuildArtifacts([
544
549
  '{events,commands,queries,services,flows,containers,channels,entities,data-products}/*/docs/**/category.json',
545
550
  '{events,commands,queries,services,flows,containers,channels,entities,data-products}/*/docs/**/_category_.json',
546
551
  '{events,commands,queries,services,flows,containers,channels,entities,data-products}/*/versioned/*/docs/**/category.json',
@@ -553,7 +558,7 @@ const resourceDocCategories = defineCollection({
553
558
  'domains/*/subdomains/*/docs/**/_category_.json',
554
559
  'domains/*/subdomains/*/versioned/*/docs/**/category.json',
555
560
  'domains/*/subdomains/*/versioned/*/docs/**/_category_.json',
556
- ],
561
+ ]),
557
562
  base: projectDirBase,
558
563
  }),
559
564
  schema: z.object({
@@ -564,7 +569,7 @@ const resourceDocCategories = defineCollection({
564
569
 
565
570
  const domains = defineCollection({
566
571
  loader: glob({
567
- pattern: [
572
+ pattern: withIgnoredBuildArtifacts([
568
573
  // ✅ Strictly include only index.md at the expected levels
569
574
  'domains/*/index.(md|mdx)',
570
575
  'domains/*/versioned/*/index.(md|mdx)',
@@ -572,7 +577,7 @@ const domains = defineCollection({
572
577
  // Capture subdomain folders
573
578
  'domains/*/subdomains/*/index.(md|mdx)',
574
579
  'domains/*/subdomains/*/versioned/*/index.(md|mdx)',
575
- ],
580
+ ]),
576
581
  base: projectDirBase,
577
582
  generateId: ({ data, ...rest }) => {
578
583
  return `${data.id}-${data.version}`;
@@ -608,7 +613,7 @@ const domains = defineCollection({
608
613
 
609
614
  const channels = defineCollection({
610
615
  loader: glob({
611
- pattern: ['**/channels/**/index.(md|mdx)', '**/channels/**/versioned/*/index.(md|mdx)'],
616
+ pattern: withIgnoredBuildArtifacts(['**/channels/**/index.(md|mdx)', '**/channels/**/versioned/*/index.(md|mdx)']),
612
617
  base: projectDirBase,
613
618
  generateId: ({ data }) => {
614
619
  return `${data.id}-${data.version}`;
@@ -651,7 +656,10 @@ const channels = defineCollection({
651
656
 
652
657
  const ubiquitousLanguages = defineCollection({
653
658
  loader: glob({
654
- pattern: ['domains/*/ubiquitous-language.(md|mdx)', 'domains/*/subdomains/*/ubiquitous-language.(md|mdx)'],
659
+ pattern: withIgnoredBuildArtifacts([
660
+ 'domains/*/ubiquitous-language.(md|mdx)',
661
+ 'domains/*/subdomains/*/ubiquitous-language.(md|mdx)',
662
+ ]),
655
663
  base: projectDirBase,
656
664
  generateId: ({ data }) => {
657
665
  // File has no id, so we need to generate one
@@ -675,7 +683,7 @@ const ubiquitousLanguages = defineCollection({
675
683
 
676
684
  const entities = defineCollection({
677
685
  loader: glob({
678
- pattern: ['**/entities/*/index.(md|mdx)', '**/entities/*/versioned/*/index.(md|mdx)'],
686
+ pattern: withIgnoredBuildArtifacts(['**/entities/*/index.(md|mdx)', '**/entities/*/versioned/*/index.(md|mdx)']),
679
687
  base: projectDirBase,
680
688
  generateId: ({ data, ...rest }) => {
681
689
  return `${data.id}-${data.version}`;
@@ -723,7 +731,11 @@ const entities = defineCollection({
723
731
  });
724
732
 
725
733
  const users = defineCollection({
726
- loader: glob({ pattern: 'users/*.(md|mdx)', base: projectDirBase, generateId: ({ data }) => data.id as string }),
734
+ loader: glob({
735
+ pattern: withIgnoredBuildArtifacts('users/*.(md|mdx)'),
736
+ base: projectDirBase,
737
+ generateId: ({ data }) => data.id as string,
738
+ }),
727
739
  schema: z.object({
728
740
  id: z.string(),
729
741
  name: z.string(),
@@ -743,7 +755,11 @@ const users = defineCollection({
743
755
  });
744
756
 
745
757
  const teams = defineCollection({
746
- loader: glob({ pattern: 'teams/*.(md|mdx)', base: projectDirBase, generateId: ({ data }) => data.id as string }),
758
+ loader: glob({
759
+ pattern: withIgnoredBuildArtifacts('teams/*.(md|mdx)'),
760
+ base: projectDirBase,
761
+ generateId: ({ data }) => data.id as string,
762
+ }),
747
763
  schema: z.object({
748
764
  id: z.string(),
749
765
  name: z.string(),
@@ -763,7 +779,7 @@ const teams = defineCollection({
763
779
 
764
780
  const designs = defineCollection({
765
781
  loader: async () => {
766
- const data = await globPackage('**/**/*.ecstudio', { cwd: projectDirBase });
782
+ const data = await globPackage('**/**/*.ecstudio', { cwd: projectDirBase, ignore: ['dist/**'] });
767
783
  // File all the files in the designs folder
768
784
  // Limit 3 designs community edition?
769
785
  const files = data.reduce<{ id: string; name: string }[]>((acc, filePath) => {
@@ -792,7 +808,7 @@ const designs = defineCollection({
792
808
 
793
809
  const diagrams = defineCollection({
794
810
  loader: glob({
795
- pattern: ['**/diagrams/**/index.(md|mdx)', '**/diagrams/**/versioned/*/index.(md|mdx)'],
811
+ pattern: withIgnoredBuildArtifacts(['**/diagrams/**/index.(md|mdx)', '**/diagrams/**/versioned/*/index.(md|mdx)']),
796
812
  base: projectDirBase,
797
813
  generateId: ({ data }) => `${data.id}-${data.version}`,
798
814
  }),
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.15.0-beta.0",
9
+ "version": "3.15.0-beta.1",
10
10
  "publishConfig": {
11
11
  "access": "public"
12
12
  },
@@ -101,9 +101,9 @@
101
101
  "update-notifier": "^7.3.1",
102
102
  "uuid": "^10.0.0",
103
103
  "zod": "^3.25.0",
104
+ "@eventcatalog/linter": "1.0.5",
104
105
  "@eventcatalog/sdk": "2.14.1",
105
- "@eventcatalog/visualiser": "^3.14.0",
106
- "@eventcatalog/linter": "1.0.5"
106
+ "@eventcatalog/visualiser": "^3.14.0"
107
107
  },
108
108
  "devDependencies": {
109
109
  "@astrojs/check": "^0.9.6",