@camstack/agent 1.1.20 → 1.1.21
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/{chunk-BWAPSCEC.mjs → chunk-4X5XKWDM.mjs} +7 -4
- package/dist/chunk-4X5XKWDM.mjs.map +1 -0
- package/dist/cli.js +6 -3
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.js +6 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-BWAPSCEC.mjs.map +0 -1
package/dist/cli.mjs
CHANGED
package/dist/index.js
CHANGED
|
@@ -579,9 +579,12 @@ function createAgentService(deps) {
|
|
|
579
579
|
}
|
|
580
580
|
const pkgName = entry?.packageName;
|
|
581
581
|
if (pkgName && pkgName !== addonId) {
|
|
582
|
-
const
|
|
583
|
-
if (
|
|
584
|
-
|
|
582
|
+
const pkgShared = [...deps.loadedAddons.values()].some((e) => e.packageName === pkgName);
|
|
583
|
+
if (!pkgShared) {
|
|
584
|
+
const pkgDir = path3.join(deps.addonsDir, pkgName);
|
|
585
|
+
if (fs3.existsSync(pkgDir)) {
|
|
586
|
+
fs3.rmSync(pkgDir, { recursive: true, force: true });
|
|
587
|
+
}
|
|
585
588
|
}
|
|
586
589
|
}
|
|
587
590
|
broker.logger.info(`$agent.undeploy: ${addonId} disposed (instance + service + folder)`);
|