@eventcatalog/create-eventcatalog 2.0.21 → 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.
Files changed (2) hide show
  1. package/dist/index.js +9 -2
  2. package/package.json +1 -1
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.21",
22469
+ version: "2.0.22",
22470
22470
  bin: {
22471
22471
  "create-catalog": "./dist/index.js"
22472
22472
  },
@@ -22746,8 +22746,9 @@ function validateNpmName(name) {
22746
22746
  // index.ts
22747
22747
  var projectPath = "";
22748
22748
  var organizationName = "";
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) => {
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) => {
22750
22750
  projectPath = name;
22751
+ organizationName = options.organizationName || "";
22751
22752
  }).option(
22752
22753
  "--ts, --typescript",
22753
22754
  `
@@ -22801,6 +22802,12 @@ var program = new import_commander.default.Command(package_default.name).version
22801
22802
  In this case, you must specify the path to the example separately:
22802
22803
  --example-path foo/bar
22803
22804
  `
22805
+ ).option(
22806
+ "--organization-name [name]",
22807
+ `
22808
+
22809
+ The organization name.
22810
+ `
22804
22811
  ).allowUnknownOption().parse(process.argv);
22805
22812
  var packageManager = !!program.useNpm ? "npm" : !!program.usePnpm ? "pnpm" : getPkgManager();
22806
22813
  async function run() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/create-eventcatalog",
3
3
  "description": "Create EventCatalog with one command",
4
- "version": "2.0.21",
4
+ "version": "2.0.22",
5
5
  "bin": {
6
6
  "create-catalog": "./dist/index.js"
7
7
  },