@naisys/hub 3.0.0-beta.20 → 3.0.0-beta.21

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/naisysHub.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createDualLogger, ensureDotEnv, expandNaisysFolder, runSetupWizard, } from "@naisys/common-node";
1
+ import { createDualLogger, cwdWithTilde, ensureDotEnv, expandNaisysFolder, runSetupWizard, } from "@naisys/common-node";
2
2
  import { createHubDatabaseService } from "@naisys/hub-database";
3
3
  import { program } from "commander";
4
4
  import dotenv from "dotenv";
@@ -117,7 +117,7 @@ if (process.argv[1] === fileURLToPath(import.meta.url)) {
117
117
  type: "fields",
118
118
  comment: "Hub server configuration",
119
119
  fields: [
120
- { key: "NAISYS_FOLDER", label: "NAISYS Data Folder" },
120
+ { key: "NAISYS_FOLDER", label: "NAISYS Data Folder", defaultValue: cwdWithTilde() },
121
121
  { key: "SERVER_PORT", label: "Server Port" },
122
122
  ],
123
123
  },
@@ -127,7 +127,7 @@ if (process.argv[1] === fileURLToPath(import.meta.url)) {
127
127
  if (process.argv.includes("--setup")) {
128
128
  const { default: path } = await import("path");
129
129
  await runSetupWizard(path.resolve(".env"), hubExampleUrl, hubWizardConfig);
130
- process.exit(0);
130
+ expandNaisysFolder();
131
131
  }
132
132
  await ensureDotEnv(hubExampleUrl, hubWizardConfig);
133
133
  expandNaisysFolder();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naisys/hub",
3
- "version": "3.0.0-beta.20",
3
+ "version": "3.0.0-beta.21",
4
4
  "description": "NAISYS Hub - Adds persistence and multi-instance coordination to NAISYS",
5
5
  "type": "module",
6
6
  "main": "dist/naisysHub.js",
@@ -30,7 +30,7 @@
30
30
  "!dist/**/*.d.ts.map"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@naisys/supervisor": "3.0.0-beta.20"
33
+ "@naisys/supervisor": "3.0.0-beta.21"
34
34
  },
35
35
  "peerDependenciesMeta": {
36
36
  "@naisys/supervisor": {
@@ -38,10 +38,10 @@
38
38
  }
39
39
  },
40
40
  "dependencies": {
41
- "@naisys/common": "3.0.0-beta.20",
42
- "@naisys/common-node": "3.0.0-beta.20",
43
- "@naisys/hub-database": "3.0.0-beta.20",
44
- "@naisys/hub-protocol": "3.0.0-beta.20",
41
+ "@naisys/common": "3.0.0-beta.21",
42
+ "@naisys/common-node": "3.0.0-beta.21",
43
+ "@naisys/hub-database": "3.0.0-beta.21",
44
+ "@naisys/hub-protocol": "3.0.0-beta.21",
45
45
  "commander": "^14.0.3",
46
46
  "dotenv": "^17.3.1",
47
47
  "fastify": "^5.8.2",