xtrm-tools 0.5.4 → 0.5.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/cli/dist/index.cjs +1 -3
- package/cli/dist/index.cjs.map +1 -1
- package/cli/package.json +1 -1
- package/package.json +1 -1
package/cli/dist/index.cjs
CHANGED
|
@@ -41280,8 +41280,6 @@ async function launchWorktreeSession(opts) {
|
|
|
41280
41280
|
const worktreeBeadsDir = import_node_path5.default.join(worktreePath, ".beads");
|
|
41281
41281
|
const mainPortFile = import_node_path5.default.join(mainBeadsDir, "dolt-server.port");
|
|
41282
41282
|
if (await import_fs_extra12.default.pathExists(mainBeadsDir)) {
|
|
41283
|
-
const worktreePortFile = import_node_path5.default.join(worktreeBeadsDir, "dolt-server.port");
|
|
41284
|
-
(0, import_node_child_process2.spawnSync)("bd", ["dolt", "stop"], { cwd: worktreePath, stdio: "pipe" });
|
|
41285
41283
|
let mainPort = null;
|
|
41286
41284
|
if (await import_fs_extra12.default.pathExists(mainPortFile)) {
|
|
41287
41285
|
mainPort = (await import_fs_extra12.default.readFile(mainPortFile, "utf8")).trim();
|
|
@@ -41299,7 +41297,7 @@ async function launchWorktreeSession(opts) {
|
|
|
41299
41297
|
}
|
|
41300
41298
|
if (mainPort) {
|
|
41301
41299
|
await import_fs_extra12.default.ensureDir(worktreeBeadsDir);
|
|
41302
|
-
await import_fs_extra12.default.writeFile(
|
|
41300
|
+
await import_fs_extra12.default.writeFile(import_node_path5.default.join(worktreeBeadsDir, "dolt-server.port"), mainPort, "utf8");
|
|
41303
41301
|
console.log(kleur_default.dim(` beads: redirected to main server (port ${mainPort})`));
|
|
41304
41302
|
} else {
|
|
41305
41303
|
console.log(kleur_default.dim(" beads: main Dolt server not running, worktree will use isolated db"));
|