Skip to content

Commit

Permalink
yarn kbn reset will clean data/ as well to avoid stale state (#188298)
Browse files Browse the repository at this point in the history
## 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: #187914
(cherry picked from commit f1fa221)
  • Loading branch information
delanni committed Jul 15, 2024
1 parent 88524f2 commit 6132223
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kbn_pm/src/commands/reset_command.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
]);
Expand Down

0 comments on commit 6132223

Please sign in to comment.