fix(plugins): allow intentional uninstall size drops (#110991)

This commit is contained in:
Peter Steinberger
2026-07-18 23:28:18 +01:00
committed by GitHub
parent 2295fae731
commit 7fbfc2e8ad
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -185,6 +185,19 @@ describe("plugins cli uninstall", () => {
entries: {},
},
});
expect(replaceConfigFile).toHaveBeenCalledWith({
baseHash: "mock",
nextConfig: {
plugins: {
entries: {},
},
},
writeOptions: {
allowConfigSizeDrop: true,
afterWrite: { mode: "restart", reason: "plugin source changed" },
unsetPaths: [["plugins", "installs"]],
},
});
expect(refreshPluginRegistry).toHaveBeenCalledWith({
config: {
plugins: {
+1
View File
@@ -184,6 +184,7 @@ export async function runPluginUninstallCommand(
nextConfig,
...(snapshot.hash !== undefined ? { baseHash: snapshot.hash } : {}),
writeOptions: {
allowConfigSizeDrop: true,
afterWrite: { mode: "restart", reason: "plugin source changed" },
},
}),