@fourier-labs/harbour 0.1.36-rc.2 → 0.1.36
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.
|
@@ -201,9 +201,11 @@ async function regenerateRetainedChecks(root, catalog, capabilities, output) {
|
|
|
201
201
|
}
|
|
202
202
|
/** Brings the session services up when `harbour dev` is not running; resolves to whether they were started here (and so are taken down again after the gate, data kept). */
|
|
203
203
|
async function ensureSession(root, runtime, bundle, output) {
|
|
204
|
-
if (await runningOrigin(root))
|
|
205
|
-
return false;
|
|
206
204
|
const lock = await readDevLock(root);
|
|
205
|
+
if (lock && await runningOrigin(root)) {
|
|
206
|
+
await runtime.attach(bundle, lock.ports);
|
|
207
|
+
return false;
|
|
208
|
+
}
|
|
207
209
|
const ports = lock?.ports ?? await allocatePorts();
|
|
208
210
|
await runtime.writeFiles(bundle, ports);
|
|
209
211
|
output("harbour dev is not running; starting the local Harbour services for the gate (stopped again afterwards).");
|
|
@@ -176,6 +176,11 @@ export class LocalRuntime {
|
|
|
176
176
|
if (result.code === 127)
|
|
177
177
|
throw new CliError("KIT_RUNTIME_UNAVAILABLE", "The native Harbour runtime could not be started. Reinstall the current Harbour CLI.");
|
|
178
178
|
}
|
|
179
|
+
/** Attach a one-shot command to the native services owned by a running dev process. */
|
|
180
|
+
async attach(bundle, ports) {
|
|
181
|
+
this.ports = ports;
|
|
182
|
+
await this.pull(bundle);
|
|
183
|
+
}
|
|
179
184
|
/**
|
|
180
185
|
* `compose up`. When Docker's bridge address pool is full (each Harbour
|
|
181
186
|
* project holds one network), the stopped projects of other app roots are
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const CLI_VERSION = "0.1.36
|
|
1
|
+
export const CLI_VERSION = "0.1.36";
|