@getmonoceros/workbench 1.38.7 → 1.38.8

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/bin.js CHANGED
@@ -9005,7 +9005,7 @@ var CLI_VERSION;
9005
9005
  var init_version = __esm({
9006
9006
  "src/version.ts"() {
9007
9007
  "use strict";
9008
- CLI_VERSION = true ? "1.38.7" : "dev";
9008
+ CLI_VERSION = true ? "1.38.8" : "dev";
9009
9009
  }
9010
9010
  });
9011
9011
 
@@ -12742,19 +12742,8 @@ async function runShare(opts) {
12742
12742
  );
12743
12743
  const ensureImage = opts.ensureImage ?? ((image) => defaultEnsureImage(image, log));
12744
12744
  await ensureImage(CADDY_IMAGE);
12745
- const dockerSpawn = opts.dockerSpawn ?? defaultDockerSpawn;
12746
- const handles = [
12747
- dockerSpawn(
12748
- buildCaddyDockerArgs({
12749
- localAddress: SHARE_ADDRESS,
12750
- ports,
12751
- network: base.network,
12752
- certDir: tls.certDir,
12753
- caddyfilePath
12754
- })
12755
- )
12756
- ];
12757
12745
  const host = mdnsName ?? ip ?? "<host-ip>";
12746
+ const caPath = await caTrustDisplayPath(tls.caCertPath, home);
12758
12747
  log.info(
12759
12748
  `Sharing ${opts.name}/${opts.app} on the local network (Ctrl+C to stop):`
12760
12749
  );
@@ -12768,12 +12757,23 @@ async function runShare(opts) {
12768
12757
  )
12769
12758
  );
12770
12759
  }
12771
- const caPath = await caTrustDisplayPath(tls.caCertPath, home);
12772
12760
  log.info(
12773
12761
  dim(
12774
12762
  ` First device? Trust the local CA once so HTTPS is warning-free: ${caPath}`
12775
12763
  )
12776
12764
  );
12765
+ const dockerSpawn = opts.dockerSpawn ?? defaultDockerSpawn;
12766
+ const handles = [
12767
+ dockerSpawn(
12768
+ buildCaddyDockerArgs({
12769
+ localAddress: SHARE_ADDRESS,
12770
+ ports,
12771
+ network: base.network,
12772
+ certDir: tls.certDir,
12773
+ caddyfilePath
12774
+ })
12775
+ )
12776
+ ];
12777
12777
  const installSignalHandler = opts.installSignalHandler ?? installSigintDefault;
12778
12778
  let stopping = false;
12779
12779
  const uninstall = installSignalHandler(() => {