@eventcatalog/sdk 2.6.0 → 2.6.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.
package/dist/index.mjs CHANGED
@@ -644,7 +644,7 @@ import matter4 from "gray-matter";
644
644
  var getMessageBySchemaPath = (directory) => async (path4, options) => {
645
645
  const pathToMessage = dirname5(path4);
646
646
  try {
647
- const files = await getFiles(`${pathToMessage}/index.{md,mdx}`);
647
+ const files = await getFiles(`${directory}/${pathToMessage}/index.{md,mdx}`);
648
648
  if (!files || files.length === 0) {
649
649
  throw new Error(`No message definition file (index.md or index.mdx) found in directory: ${pathToMessage}`);
650
650
  }