@adhdev/daemon-core 0.8.17 → 0.8.19
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/package.json
CHANGED
|
@@ -187,6 +187,15 @@ async function runDaemonUpgradeHelper(payload: DaemonUpgradeHelperPayload): Prom
|
|
|
187
187
|
appendUpgradeLog(installOutput.trim());
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
+
// npm may leave a staging dir behind on Windows when prebuild-install holds
|
|
191
|
+
// conpty.node open during install scripts. Clean it up now that all npm child
|
|
192
|
+
// processes have exited.
|
|
193
|
+
if (process.platform === 'win32') {
|
|
194
|
+
await new Promise((resolve) => setTimeout(resolve, 500));
|
|
195
|
+
cleanupStaleGlobalInstallDirs(payload.packageName);
|
|
196
|
+
appendUpgradeLog('Post-install staging cleanup complete');
|
|
197
|
+
}
|
|
198
|
+
|
|
190
199
|
if (restartArgv.length > 0) {
|
|
191
200
|
const env = { ...process.env };
|
|
192
201
|
delete env[UPGRADE_HELPER_ENV];
|