@eventcatalog/generator-asyncapi 6.4.0 → 6.4.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.js +13 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1538,7 +1538,7 @@ import path3 from "path";
|
|
|
1538
1538
|
// package.json
|
|
1539
1539
|
var package_default = {
|
|
1540
1540
|
name: "@eventcatalog/generator-asyncapi",
|
|
1541
|
-
version: "6.4.
|
|
1541
|
+
version: "6.4.1",
|
|
1542
1542
|
description: "AsyncAPI generator for EventCatalog",
|
|
1543
1543
|
scripts: {
|
|
1544
1544
|
build: "tsup",
|
|
@@ -4358,6 +4358,18 @@ Processing domain: ${domainName} (v${domainVersion})`));
|
|
|
4358
4358
|
} else {
|
|
4359
4359
|
servicePath = path3.join("../", "domains", options.domain.id, "services", service.id);
|
|
4360
4360
|
}
|
|
4361
|
+
} else {
|
|
4362
|
+
const existingService = await getService(serviceId, "latest");
|
|
4363
|
+
if (existingService) {
|
|
4364
|
+
const existingServiceResource = await getResourcePath(
|
|
4365
|
+
process.env.PROJECT_DIR,
|
|
4366
|
+
serviceId,
|
|
4367
|
+
existingService.version
|
|
4368
|
+
);
|
|
4369
|
+
if (existingServiceResource) {
|
|
4370
|
+
servicePath = path3.join("../", existingServiceResource.directory);
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4361
4373
|
}
|
|
4362
4374
|
if (options.writeFilesToRoot) {
|
|
4363
4375
|
servicePath = service.id;
|