@memfork/cli 0.1.8 → 0.1.10
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/config.js +7 -2
- package/package.json +2 -2
package/dist/config.js
CHANGED
|
@@ -42,7 +42,10 @@ export const MEMWAL_CONSTANTS = {
|
|
|
42
42
|
},
|
|
43
43
|
};
|
|
44
44
|
// ─── Paths ────────────────────────────────────────────────────────────────────
|
|
45
|
-
|
|
45
|
+
function defaultRelayer(network) {
|
|
46
|
+
return MEMWAL_CONSTANTS[network]?.relayer
|
|
47
|
+
?? MEMWAL_CONSTANTS.mainnet.relayer;
|
|
48
|
+
}
|
|
46
49
|
export function projectConfigPath(cwd = process.cwd()) {
|
|
47
50
|
return path.join(cwd, ".memfork", "config.json");
|
|
48
51
|
}
|
|
@@ -175,7 +178,9 @@ export function resolveConfig(opts = {}) {
|
|
|
175
178
|
privateKey,
|
|
176
179
|
memwalAccountId,
|
|
177
180
|
memwalKey,
|
|
178
|
-
memwalRelayer:
|
|
181
|
+
memwalRelayer: env["MEMFORK_RELAYER_URL"] ??
|
|
182
|
+
stored?.memwalRelayer ??
|
|
183
|
+
defaultRelayer(network),
|
|
179
184
|
network,
|
|
180
185
|
defaultBranch: project?.defaultBranch ?? "main",
|
|
181
186
|
rpcUrl: env["MEMFORK_RPC_URL"] ?? project?.rpcUrl,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memfork/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "MemForks CLI — init, commit, recall, merge, install plugins",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@inquirer/prompts": "^8.5.2",
|
|
36
|
-
"@memfork/core": "^0.1.
|
|
36
|
+
"@memfork/core": "^0.1.4",
|
|
37
37
|
"chalk": "^5.6.2",
|
|
38
38
|
"commander": "^15.0.0"
|
|
39
39
|
},
|