cwm-assistant 0.3.6 → 0.3.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.
@@ -2619,7 +2619,7 @@ var Type = type_exports2;
2619
2619
 
2620
2620
  // ../../packages/contracts/src/assistant.ts
2621
2621
  var ASSISTANT_PROTOCOL = 1;
2622
- var ASSISTANT_VERSION = "0.3.6";
2622
+ var ASSISTANT_VERSION = "0.3.8";
2623
2623
  var ASSISTANT_PORT = 46322;
2624
2624
 
2625
2625
  // ../../packages/contracts/src/index.ts
@@ -6090,7 +6090,8 @@ function registerUpgradeRoutes(app, store, entry, options = {}) {
6090
6090
  "--state-dir",
6091
6091
  store.directory
6092
6092
  ],
6093
- { detached: true, stdio: "ignore", windowsHide: true, cwd: root }
6093
+ // Away from the package directory: on Windows a live cwd there blocks npm's rename.
6094
+ { detached: true, stdio: "ignore", windowsHide: true, cwd: store.directory }
6094
6095
  );
6095
6096
  child.unref();
6096
6097
  if (store.state.autostart)
@@ -6344,7 +6345,10 @@ async function cli(args, entry) {
6344
6345
  const child = spawn8(process.execPath, [entry, "serve", "--state-dir", directory], {
6345
6346
  detached: true,
6346
6347
  windowsHide: true,
6347
- stdio: ["ignore", log, log]
6348
+ stdio: ["ignore", log, log],
6349
+ // Never inherit the package directory: Windows refuses to rename a directory that is
6350
+ // some live process's cwd, which makes `npm install -g` fail with EBUSY.
6351
+ cwd: directory
6348
6352
  });
6349
6353
  child.unref();
6350
6354
  fs24.closeSync(log);
@@ -6591,4 +6595,4 @@ async function cli(args, entry) {
6591
6595
  export {
6592
6596
  cli
6593
6597
  };
6594
- //# sourceMappingURL=cli-3NJG6G4T.js.map
6598
+ //# sourceMappingURL=cli-TPXAFK3D.js.map