plugin-updater 1.0.35 → 1.0.36
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -423,7 +423,15 @@ async function deployToExecutionDir(pluginName, executionPath, changed, configDi
|
|
|
423
423
|
const deployed = await import(pluginExecutionFile);
|
|
424
424
|
if (typeof deployed.activate === "function") {
|
|
425
425
|
writeLog(`Activating ${pluginName}`);
|
|
426
|
-
|
|
426
|
+
// tells the plugin the updater is the caller, so it must not start
|
|
427
|
+
// another earlyLaunch and recurse back into the updater
|
|
428
|
+
process.env.PLUGIN_UPDATER_ACTIVATION = "1";
|
|
429
|
+
try {
|
|
430
|
+
await deployed.activate();
|
|
431
|
+
}
|
|
432
|
+
finally {
|
|
433
|
+
delete process.env.PLUGIN_UPDATER_ACTIVATION;
|
|
434
|
+
}
|
|
427
435
|
writeLog(`Activated ${pluginName}`);
|
|
428
436
|
}
|
|
429
437
|
}
|