From 6132223c9409afc1010a43edf06de5207f8d3e16 Mon Sep 17 00:00:00 2001 From: Alex Szabo Date: Mon, 15 Jul 2024 16:38:57 +0200 Subject: [PATCH] `yarn kbn reset` will clean data/ as well to avoid stale state (#188298) ## Summary In some cases, the `data/` folder sticking around is causing developers' environments to be corrupted. None of the current reset/clean methods clean that folder. This PR adds this small adjustment. Closes: https://github.com/elastic/kibana/issues/187914 (cherry picked from commit f1fa22125115c13638e3470891f62fbbe02c71bb) --- kbn_pm/src/commands/reset_command.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/kbn_pm/src/commands/reset_command.mjs b/kbn_pm/src/commands/reset_command.mjs index 7331343a0f13e..4209221b8be19 100644 --- a/kbn_pm/src/commands/reset_command.mjs +++ b/kbn_pm/src/commands/reset_command.mjs @@ -36,6 +36,7 @@ export const command = { await cleanPaths(log, [ Path.resolve(REPO_ROOT, 'node_modules'), Path.resolve(REPO_ROOT, 'x-pack/node_modules'), + Path.resolve(REPO_ROOT, 'data'), ...readCleanPatterns(REPO_ROOT), ...(await findPluginCleanPaths(log)), ]);