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
This commit is contained in:
Alex Szabo 2024-07-15 16:38:57 +02:00 committed by GitHub
parent d5345e442d
commit f1fa221251
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)),
]);