@eventcatalog/core 2.0.11 → 2.0.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @eventcatalog/core
2
2
 
3
+ ## 2.0.12
4
+
5
+ ### Patch Changes
6
+
7
+ - 18f1c3d: fix(core): fixed start and preview commands
8
+
3
9
  ## 2.0.11
4
10
 
5
11
  ### Patch Changes
@@ -3141,7 +3141,7 @@ var previewCatalog = () => {
3141
3141
  copyFolder((0, import_node_path.join)(dir, "public"), (0, import_node_path.join)(core, "public"));
3142
3142
  copyFile((0, import_node_path.join)(dir, "eventcatalog.config.js"), (0, import_node_path.join)(core, "eventcatalog.config.js"));
3143
3143
  copyFile((0, import_node_path.join)(dir, "eventcatalog.styles.css"), (0, import_node_path.join)(core, "eventcatalog.styles.css"));
3144
- (0, import_node_child_process.execSync)(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview`, {
3144
+ (0, import_node_child_process.execSync)(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview -- --root ${dir} --port 3000`, {
3145
3145
  cwd: core,
3146
3146
  stdio: "inherit"
3147
3147
  });
@@ -3108,7 +3108,7 @@ var previewCatalog = () => {
3108
3108
  copyFolder(join(dir, "public"), join(core, "public"));
3109
3109
  copyFile(join(dir, "eventcatalog.config.js"), join(core, "eventcatalog.config.js"));
3110
3110
  copyFile(join(dir, "eventcatalog.styles.css"), join(core, "eventcatalog.styles.css"));
3111
- execSync(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview`, {
3111
+ execSync(`PROJECT_DIR='${dir}' CATALOG_DIR='${core}' npm run preview -- --root ${dir} --port 3000`, {
3112
3112
  cwd: core,
3113
3113
  stdio: "inherit"
3114
3114
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@eventcatalog/core",
3
3
  "type": "module",
4
- "version": "2.0.11",
4
+ "version": "2.0.12",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },