@eventcatalog/sdk 2.27.2 → 2.27.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/index.mjs CHANGED
@@ -636,7 +636,7 @@ function buildFileCache(catalogDir) {
636
636
  const canonicalCatalogDir = toCanonicalPath(catalogDir);
637
637
  const files = globSync2("**/index.{md,mdx}", {
638
638
  cwd: canonicalCatalogDir,
639
- ignore: ["node_modules/**"],
639
+ ignore: ["node_modules/**", "dist/**", ".eventcatalog-core/**"],
640
640
  absolute: true,
641
641
  nodir: true
642
642
  }).map(normalize);
@@ -779,7 +779,7 @@ var getFiles = async (pattern, ignore2 = "") => {
779
779
  const ignoreList = Array.isArray(ignore2) ? ignore2 : [ignore2];
780
780
  const files = globSync2(relativePattern, {
781
781
  cwd: absoluteBaseDir,
782
- ignore: ["node_modules/**", ...ignoreList],
782
+ ignore: ["node_modules/**", "dist/**", ".eventcatalog-core/**", ...ignoreList],
783
783
  absolute: true,
784
784
  nodir: true
785
785
  });
@@ -4441,17 +4441,12 @@ var replaceDirectory = async (stagingDirectory, outDir) => {
4441
4441
  async function hydrate(graph, options) {
4442
4442
  const result = {
4443
4443
  fetched: 0,
4444
- written: 0,
4445
- referenced: 0
4444
+ written: 0
4446
4445
  };
4447
4446
  const artifacts = [];
4448
4447
  for (const entity of graph.entities) {
4449
4448
  const { source, commit } = entity.resolvedFrom;
4450
4449
  if (options.localSource !== void 0 && source === options.localSource) continue;
4451
- if (options.modes?.[source] === "reference") {
4452
- result.referenced++;
4453
- continue;
4454
- }
4455
4450
  if (!entity.contentPath) continue;
4456
4451
  artifacts.push({
4457
4452
  source,
@@ -4488,8 +4483,7 @@ async function hydrate(graph, options) {
4488
4483
  }
4489
4484
  for (const asset of graph.assets) {
4490
4485
  const { source, commit } = asset.resolvedFrom;
4491
- if (options.localSource !== void 0 && source === options.localSource || options.modes?.[source] === "reference")
4492
- continue;
4486
+ if (options.localSource !== void 0 && source === options.localSource) continue;
4493
4487
  artifacts.push({
4494
4488
  source,
4495
4489
  commit,