@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/eventcatalog.js +1 -1
- package/dist/eventcatalog.js.map +1 -1
- package/dist/eventcatalog.mjs +1 -1
- package/dist/eventcatalog.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/messages.js +1 -1
- package/dist/messages.js.map +1 -1
- package/dist/messages.mjs +1 -1
- package/dist/messages.mjs.map +1 -1
- package/package.json +1 -1
package/dist/eventcatalog.js
CHANGED
|
@@ -683,7 +683,7 @@ var import_gray_matter4 = __toESM(require("gray-matter"));
|
|
|
683
683
|
var getMessageBySchemaPath = (directory) => async (path4, options) => {
|
|
684
684
|
const pathToMessage = (0, import_node_path8.dirname)(path4);
|
|
685
685
|
try {
|
|
686
|
-
const files = await getFiles(`${pathToMessage}/index.{md,mdx}`);
|
|
686
|
+
const files = await getFiles(`${directory}/${pathToMessage}/index.{md,mdx}`);
|
|
687
687
|
if (!files || files.length === 0) {
|
|
688
688
|
throw new Error(`No message definition file (index.md or index.mdx) found in directory: ${pathToMessage}`);
|
|
689
689
|
}
|