@adhdev/daemon-core 0.8.17 → 0.8.18

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/index.js CHANGED
@@ -11988,6 +11988,11 @@ async function runDaemonUpgradeHelper(payload) {
11988
11988
  if (installOutput.trim()) {
11989
11989
  appendUpgradeLog(installOutput.trim());
11990
11990
  }
11991
+ if (process.platform === "win32") {
11992
+ await new Promise((resolve9) => setTimeout(resolve9, 500));
11993
+ cleanupStaleGlobalInstallDirs(payload.packageName);
11994
+ appendUpgradeLog("Post-install staging cleanup complete");
11995
+ }
11991
11996
  if (restartArgv.length > 0) {
11992
11997
  const env = { ...process.env };
11993
11998
  delete env[UPGRADE_HELPER_ENV];