@eventcatalog/create-eventcatalog 4.3.12-beta.0 → 4.3.12-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.
- package/dist/index.js +4 -2
- package/package.json +1 -1
- package/templates/amazon-api-gateway/eventcatalog.config.js +2 -0
- package/templates/analytics.ts +1 -0
- package/templates/asyncapi/eventcatalog.config.js +2 -0
- package/templates/confluent/eventcatalog.config.js +2 -0
- package/templates/default/eventcatalog.config.js +2 -0
- package/templates/empty/eventcatalog.config.js +2 -0
- package/templates/eventbridge/eventcatalog.config.js +2 -0
- package/templates/graphql/eventcatalog.config.js +2 -0
- package/templates/index.ts +4 -1
- package/templates/openapi/eventcatalog.config.js +2 -0
package/dist/index.js
CHANGED
|
@@ -29835,7 +29835,7 @@ var import_os2 = __toESM(require("os"));
|
|
|
29835
29835
|
var package_default = {
|
|
29836
29836
|
name: "@eventcatalog/create-eventcatalog",
|
|
29837
29837
|
description: "Create EventCatalog with one command",
|
|
29838
|
-
version: "4.3.12-beta.
|
|
29838
|
+
version: "4.3.12-beta.1",
|
|
29839
29839
|
license: "MIT",
|
|
29840
29840
|
bin: {
|
|
29841
29841
|
"create-catalog": "./dist/index.js"
|
|
@@ -30010,12 +30010,14 @@ var installTemplate = async ({
|
|
|
30010
30010
|
import_fs16.default.writeFileSync(import_path9.default.join(root, "AGENTS.md"), AGENT_RULES);
|
|
30011
30011
|
import_fs16.default.writeFileSync(import_path9.default.join(root, "CLAUDE.md"), CLAUDE_RULES);
|
|
30012
30012
|
const cId = (0, import_uuid.v4)();
|
|
30013
|
+
const tsd = Date.now();
|
|
30013
30014
|
const eventCatalogConfigPath = import_path9.default.join(root, "eventcatalog.config.js");
|
|
30014
30015
|
let eventCatalogConfig = import_fs16.default.readFileSync(eventCatalogConfigPath, "utf8");
|
|
30015
30016
|
eventCatalogConfig = eventCatalogConfig.replace(/<organizationName>/g, organizationName2);
|
|
30016
30017
|
eventCatalogConfig = eventCatalogConfig.replace(/<cId>/g, cId);
|
|
30018
|
+
eventCatalogConfig = eventCatalogConfig.replace(/'<tsd>'/g, String(tsd));
|
|
30017
30019
|
import_fs16.default.writeFileSync(eventCatalogConfigPath, eventCatalogConfig);
|
|
30018
|
-
await raiseEvent({ command: "create", org: organizationName2, cId });
|
|
30020
|
+
await raiseEvent({ command: "create", org: organizationName2, cId, tsd });
|
|
30019
30021
|
if (!eslint) {
|
|
30020
30022
|
await import_fs16.default.promises.unlink(import_path9.default.join(root, ".eslintrc.json"));
|
|
30021
30023
|
}
|
package/package.json
CHANGED
package/templates/analytics.ts
CHANGED
|
@@ -39,6 +39,8 @@ export default {
|
|
|
39
39
|
},
|
|
40
40
|
// required random generated id used by eventcatalog
|
|
41
41
|
cId: '<cId>',
|
|
42
|
+
// required by eventcatalog
|
|
43
|
+
tsd: '<tsd>',
|
|
42
44
|
// This lets you copy markdown contents from EventCatalog to your clipboard
|
|
43
45
|
// Including schemas for your events and services
|
|
44
46
|
llmsTxt: {
|
|
@@ -44,6 +44,8 @@ export default {
|
|
|
44
44
|
},
|
|
45
45
|
// required random generated id used by eventcatalog
|
|
46
46
|
cId: '<cId>',
|
|
47
|
+
// required by eventcatalog
|
|
48
|
+
tsd: '<tsd>',
|
|
47
49
|
// Just import all events into the Catalog from a registry
|
|
48
50
|
generators: [
|
|
49
51
|
'@eventcatalog/generator-eventbridge',
|
package/templates/index.ts
CHANGED
|
@@ -148,15 +148,18 @@ export const installTemplate = async ({
|
|
|
148
148
|
fs.writeFileSync(path.join(root, 'CLAUDE.md'), CLAUDE_RULES);
|
|
149
149
|
|
|
150
150
|
const cId = v4();
|
|
151
|
+
// trial start date (unix ms), stored as a number
|
|
152
|
+
const tsd = Date.now();
|
|
151
153
|
|
|
152
154
|
// update the properties in the eventcatalog.config.js
|
|
153
155
|
const eventCatalogConfigPath = path.join(root, 'eventcatalog.config.js');
|
|
154
156
|
let eventCatalogConfig = fs.readFileSync(eventCatalogConfigPath, 'utf8');
|
|
155
157
|
eventCatalogConfig = eventCatalogConfig.replace(/<organizationName>/g, organizationName);
|
|
156
158
|
eventCatalogConfig = eventCatalogConfig.replace(/<cId>/g, cId);
|
|
159
|
+
eventCatalogConfig = eventCatalogConfig.replace(/'<tsd>'/g, String(tsd));
|
|
157
160
|
fs.writeFileSync(eventCatalogConfigPath, eventCatalogConfig);
|
|
158
161
|
|
|
159
|
-
await raiseEvent({ command: 'create', org: organizationName, cId });
|
|
162
|
+
await raiseEvent({ command: 'create', org: organizationName, cId, tsd });
|
|
160
163
|
|
|
161
164
|
if (!eslint) {
|
|
162
165
|
// remove un-necessary template file if eslint is not desired
|