@eventcatalog/create-eventcatalog 2.0.20 → 2.0.22
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 +12 -6
- package/package.json +1 -1
- package/templates/index.ts +3 -4
package/dist/index.js
CHANGED
|
@@ -22466,7 +22466,7 @@ var import_os2 = __toESM(require("os"));
|
|
|
22466
22466
|
var package_default = {
|
|
22467
22467
|
name: "@eventcatalog/create-eventcatalog",
|
|
22468
22468
|
description: "Create EventCatalog with one command",
|
|
22469
|
-
version: "2.0.
|
|
22469
|
+
version: "2.0.22",
|
|
22470
22470
|
bin: {
|
|
22471
22471
|
"create-catalog": "./dist/index.js"
|
|
22472
22472
|
},
|
|
@@ -22566,9 +22566,6 @@ var installTemplate = async ({
|
|
|
22566
22566
|
preview: "eventcatalog preview",
|
|
22567
22567
|
generate: "eventcatalog generate",
|
|
22568
22568
|
test: 'echo "Error: no test specified" && exit 1'
|
|
22569
|
-
},
|
|
22570
|
-
dependencies: {
|
|
22571
|
-
"@eventcatalog/core": "latest"
|
|
22572
22569
|
}
|
|
22573
22570
|
};
|
|
22574
22571
|
import_fs16.default.writeFileSync(
|
|
@@ -22576,7 +22573,9 @@ var installTemplate = async ({
|
|
|
22576
22573
|
JSON.stringify(packageJson, null, 2) + import_os3.default.EOL
|
|
22577
22574
|
);
|
|
22578
22575
|
const installFlags = { packageManager: packageManager2, isOnline };
|
|
22579
|
-
const dependencies = [
|
|
22576
|
+
const dependencies = [
|
|
22577
|
+
"@eventcatalog/core"
|
|
22578
|
+
];
|
|
22580
22579
|
const devDependencies = [];
|
|
22581
22580
|
if (dependencies.length) {
|
|
22582
22581
|
console.log();
|
|
@@ -22747,8 +22746,9 @@ function validateNpmName(name) {
|
|
|
22747
22746
|
// index.ts
|
|
22748
22747
|
var projectPath = "";
|
|
22749
22748
|
var organizationName = "";
|
|
22750
|
-
var program = new import_commander.default.Command(package_default.name).version(package_default.version).arguments("<project-directory>").usage(`${import_chalk5.default.green("<project-directory>")} [options]`).action((name) => {
|
|
22749
|
+
var program = new import_commander.default.Command(package_default.name).version(package_default.version).arguments("<project-directory>").usage(`${import_chalk5.default.green("<project-directory>")} [options]`).action((name, options) => {
|
|
22751
22750
|
projectPath = name;
|
|
22751
|
+
organizationName = options.organizationName || "";
|
|
22752
22752
|
}).option(
|
|
22753
22753
|
"--ts, --typescript",
|
|
22754
22754
|
`
|
|
@@ -22802,6 +22802,12 @@ var program = new import_commander.default.Command(package_default.name).version
|
|
|
22802
22802
|
In this case, you must specify the path to the example separately:
|
|
22803
22803
|
--example-path foo/bar
|
|
22804
22804
|
`
|
|
22805
|
+
).option(
|
|
22806
|
+
"--organization-name [name]",
|
|
22807
|
+
`
|
|
22808
|
+
|
|
22809
|
+
The organization name.
|
|
22810
|
+
`
|
|
22805
22811
|
).allowUnknownOption().parse(process.argv);
|
|
22806
22812
|
var packageManager = !!program.useNpm ? "npm" : !!program.usePnpm ? "pnpm" : getPkgManager();
|
|
22807
22813
|
async function run() {
|
package/package.json
CHANGED
package/templates/index.ts
CHANGED
|
@@ -50,9 +50,6 @@ export const installTemplate = async ({
|
|
|
50
50
|
preview: "eventcatalog preview",
|
|
51
51
|
generate: "eventcatalog generate",
|
|
52
52
|
test: 'echo "Error: no test specified" && exit 1',
|
|
53
|
-
},
|
|
54
|
-
dependencies: {
|
|
55
|
-
"@eventcatalog/core": "latest"
|
|
56
53
|
}
|
|
57
54
|
};
|
|
58
55
|
/**
|
|
@@ -72,7 +69,9 @@ export const installTemplate = async ({
|
|
|
72
69
|
* Default dependencies.
|
|
73
70
|
*/
|
|
74
71
|
// const dependencies = ["@eventcatalog/eventcatalog-2"];
|
|
75
|
-
const dependencies = [
|
|
72
|
+
const dependencies = [
|
|
73
|
+
"@eventcatalog/core"
|
|
74
|
+
] as any;
|
|
76
75
|
// "@myuser/my-package": "file:../lib"
|
|
77
76
|
const devDependencies = [] as any;
|
|
78
77
|
|