@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.mjs CHANGED
@@ -11911,6 +11911,11 @@ async function runDaemonUpgradeHelper(payload) {
11911
11911
  if (installOutput.trim()) {
11912
11912
  appendUpgradeLog(installOutput.trim());
11913
11913
  }
11914
+ if (process.platform === "win32") {
11915
+ await new Promise((resolve9) => setTimeout(resolve9, 500));
11916
+ cleanupStaleGlobalInstallDirs(payload.packageName);
11917
+ appendUpgradeLog("Post-install staging cleanup complete");
11918
+ }
11914
11919
  if (restartArgv.length > 0) {
11915
11920
  const env = { ...process.env };
11916
11921
  delete env[UPGRADE_HELPER_ENV];