@uniqbit/mate-core 0.15.4-canary.3 → 0.15.4-canary.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniqbit/mate-core",
3
- "version": "0.15.4-canary.3",
3
+ "version": "0.15.4-canary.5",
4
4
  "description": "Core framework and plugin APIs for Mate.",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -5,7 +5,7 @@ import path from "node:path";
5
5
  import { parse } from "yaml";
6
6
 
7
7
  import { FRAMEWORK_NAME } from "../../framework";
8
- import { ConfigStore, defaultConfig, validateHubConfig } from "./config-store";
8
+ import { ConfigStore, validateHubConfig } from "./config-store";
9
9
  import { GlobalConfigStore } from "./global-config-store";
10
10
  import type { FrameworkConfig, HubMember, HubMemberSource } from "./types";
11
11
  import {
@@ -121,7 +121,13 @@ export async function initializeCompanionHub(
121
121
  throw new Error(`Cannot initialize hub over an existing non-hub framework: ${hubPath}`);
122
122
  }
123
123
  } else {
124
- const config = { ...defaultConfig(), type: "hub" as const, hub: { companions: [] } };
124
+ const config: FrameworkConfig = {
125
+ type: "hub",
126
+ profiles: {},
127
+ packageManagers: [],
128
+ capabilities: [],
129
+ hub: { companions: [] },
130
+ };
125
131
  await configStore.save(config);
126
132
  }
127
133
  await globalConfigStore.register(hubPath);