@eventcatalog/create-eventcatalog 4.2.0 → 4.2.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.
Files changed (2) hide show
  1. package/dist/index.js +21 -22
  2. package/package.json +2 -6
package/dist/index.js CHANGED
@@ -13581,9 +13581,9 @@ var require_path_key = __commonJS({
13581
13581
  }
13582
13582
  });
13583
13583
 
13584
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/resolveCommand.js
13584
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
13585
13585
  var require_resolveCommand = __commonJS({
13586
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
13586
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports2, module2) {
13587
13587
  "use strict";
13588
13588
  var path8 = require("path");
13589
13589
  var which = require_which();
@@ -13591,7 +13591,8 @@ var require_resolveCommand = __commonJS({
13591
13591
  function resolveCommandAttempt(parsed, withoutPathExt) {
13592
13592
  const cwd = process.cwd();
13593
13593
  const hasCustomCwd = parsed.options.cwd != null;
13594
- if (hasCustomCwd) {
13594
+ const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0;
13595
+ if (shouldSwitchCwd) {
13595
13596
  try {
13596
13597
  process.chdir(parsed.options.cwd);
13597
13598
  } catch (err) {
@@ -13605,7 +13606,9 @@ var require_resolveCommand = __commonJS({
13605
13606
  });
13606
13607
  } catch (e) {
13607
13608
  } finally {
13608
- process.chdir(cwd);
13609
+ if (shouldSwitchCwd) {
13610
+ process.chdir(cwd);
13611
+ }
13609
13612
  }
13610
13613
  if (resolved) {
13611
13614
  resolved = path8.resolve(hasCustomCwd ? parsed.options.cwd : "", resolved);
@@ -13619,9 +13622,9 @@ var require_resolveCommand = __commonJS({
13619
13622
  }
13620
13623
  });
13621
13624
 
13622
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/escape.js
13625
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/escape.js
13623
13626
  var require_escape = __commonJS({
13624
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
13627
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports2, module2) {
13625
13628
  "use strict";
13626
13629
  var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
13627
13630
  function escapeCommand(arg) {
@@ -13630,8 +13633,8 @@ var require_escape = __commonJS({
13630
13633
  }
13631
13634
  function escapeArgument(arg, doubleEscapeMetaChars) {
13632
13635
  arg = `${arg}`;
13633
- arg = arg.replace(/(\\*)"/g, '$1$1\\"');
13634
- arg = arg.replace(/(\\*)$/, "$1$1");
13636
+ arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
13637
+ arg = arg.replace(/(?=(\\+?)?)\1$/, "$1$1");
13635
13638
  arg = `"${arg}"`;
13636
13639
  arg = arg.replace(metaCharsRegExp, "^$1");
13637
13640
  if (doubleEscapeMetaChars) {
@@ -13670,9 +13673,9 @@ var require_shebang_command = __commonJS({
13670
13673
  }
13671
13674
  });
13672
13675
 
13673
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/readShebang.js
13676
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/readShebang.js
13674
13677
  var require_readShebang = __commonJS({
13675
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
13678
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports2, module2) {
13676
13679
  "use strict";
13677
13680
  var fs7 = require("fs");
13678
13681
  var shebangCommand = require_shebang_command();
@@ -14774,9 +14777,9 @@ var require_semver = __commonJS({
14774
14777
  }
14775
14778
  });
14776
14779
 
14777
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/parse.js
14780
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/parse.js
14778
14781
  var require_parse3 = __commonJS({
14779
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
14782
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/parse.js"(exports2, module2) {
14780
14783
  "use strict";
14781
14784
  var path8 = require("path");
14782
14785
  var niceTry = require_src2();
@@ -14860,9 +14863,9 @@ var require_parse3 = __commonJS({
14860
14863
  }
14861
14864
  });
14862
14865
 
14863
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/enoent.js
14866
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/enoent.js
14864
14867
  var require_enoent = __commonJS({
14865
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
14868
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/lib/enoent.js"(exports2, module2) {
14866
14869
  "use strict";
14867
14870
  var isWin = process.platform === "win32";
14868
14871
  function notFoundError(original, syscall) {
@@ -14910,9 +14913,9 @@ var require_enoent = __commonJS({
14910
14913
  }
14911
14914
  });
14912
14915
 
14913
- // ../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/index.js
14916
+ // ../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/index.js
14914
14917
  var require_cross_spawn = __commonJS({
14915
- "../../node_modules/.pnpm/cross-spawn@6.0.5/node_modules/cross-spawn/index.js"(exports2, module2) {
14918
+ "../../node_modules/.pnpm/cross-spawn@6.0.6/node_modules/cross-spawn/index.js"(exports2, module2) {
14916
14919
  "use strict";
14917
14920
  var cp = require("child_process");
14918
14921
  var parse6 = require_parse3();
@@ -29805,7 +29808,7 @@ var import_os2 = __toESM(require("os"));
29805
29808
  var package_default = {
29806
29809
  name: "@eventcatalog/create-eventcatalog",
29807
29810
  description: "Create EventCatalog with one command",
29808
- version: "4.2.0",
29811
+ version: "4.2.1",
29809
29812
  bin: {
29810
29813
  "create-catalog": "./dist/index.js"
29811
29814
  },
@@ -29837,7 +29840,6 @@ var package_default = {
29837
29840
  "@types/node": "^20.14.10",
29838
29841
  "@types/prompts": "2.0.1",
29839
29842
  "@types/rimraf": "3.0.0",
29840
- "@types/tar": "4.0.3",
29841
29843
  "@types/uuid": "^10.0.0",
29842
29844
  "@types/validate-npm-package-name": "3.0.0",
29843
29845
  "@vercel/ncc": "0.34.0",
@@ -29845,21 +29847,18 @@ var package_default = {
29845
29847
  chalk: "2.4.2",
29846
29848
  commander: "2.20.0",
29847
29849
  cpy: "^11.0.0",
29848
- "cross-spawn": "6.0.5",
29850
+ "cross-spawn": "6.0.6",
29849
29851
  "fast-glob": "^3.3.2",
29850
- got: "^14.0.0",
29851
29852
  ora: "^5.4.1",
29852
29853
  prettier: "^3.3.3",
29853
29854
  prompts: "2.1.0",
29854
29855
  rimraf: "^5.0.7",
29855
- tar: "^4.4.19",
29856
29856
  tsup: "^8.1.0",
29857
29857
  typescript: "^5.4.5",
29858
29858
  "update-check": "1.5.4",
29859
29859
  "validate-npm-package-name": "3.0.0"
29860
29860
  },
29861
29861
  dependencies: {
29862
- "@changesets/cli": "^2.27.6",
29863
29862
  uuid: "^10.0.0"
29864
29863
  },
29865
29864
  packageManager: "pnpm@10.23.0+sha512.21c4e5698002ade97e4efe8b8b4a89a8de3c85a37919f957e7a0f30f38fbc5bbdd05980ffe29179b2fb6e6e691242e098d945d1601772cad0fef5fb6411e2a4b"
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": "4.2.0",
4
+ "version": "4.2.1",
5
5
  "bin": {
6
6
  "create-catalog": "./dist/index.js"
7
7
  },
@@ -23,7 +23,6 @@
23
23
  "@types/node": "^20.14.10",
24
24
  "@types/prompts": "2.0.1",
25
25
  "@types/rimraf": "3.0.0",
26
- "@types/tar": "4.0.3",
27
26
  "@types/uuid": "^10.0.0",
28
27
  "@types/validate-npm-package-name": "3.0.0",
29
28
  "@vercel/ncc": "0.34.0",
@@ -31,21 +30,18 @@
31
30
  "chalk": "2.4.2",
32
31
  "commander": "2.20.0",
33
32
  "cpy": "^11.0.0",
34
- "cross-spawn": "6.0.5",
33
+ "cross-spawn": "6.0.6",
35
34
  "fast-glob": "^3.3.2",
36
- "got": "^14.0.0",
37
35
  "ora": "^5.4.1",
38
36
  "prettier": "^3.3.3",
39
37
  "prompts": "2.1.0",
40
38
  "rimraf": "^5.0.7",
41
- "tar": "^4.4.19",
42
39
  "tsup": "^8.1.0",
43
40
  "typescript": "^5.4.5",
44
41
  "update-check": "1.5.4",
45
42
  "validate-npm-package-name": "3.0.0"
46
43
  },
47
44
  "dependencies": {
48
- "@changesets/cli": "^2.27.6",
49
45
  "uuid": "^10.0.0"
50
46
  },
51
47
  "scripts": {