Skip to content

[6.5] [kbn/pm] allow packages to define extra paths to clean (#26132)#26285

Merged
spalger merged 1 commit intoelastic:6.5from
spalger:backport/6.5/pr-26132
Nov 27, 2018
Merged

[6.5] [kbn/pm] allow packages to define extra paths to clean (#26132)#26285
spalger merged 1 commit intoelastic:6.5from
spalger:backport/6.5/pr-26132

Conversation

@spalger
Copy link
Contributor

@spalger spalger commented Nov 27, 2018

Backports the following commits to 6.5:

I noticed some discussion about how kbn clean should probably clear out the `.eslintcache` file, since it doesn't handle changes in related modules (for things like the import plugin) and it would be nice if `yarn kbn clean` took care of the issue. I figured it's not a bad idea, but adding `.eslintcache` directly to `@kbn/pm` felt wrong, so instead I've added another config options that can go in the package.json file, `clean.extraPatterns`. This array of patterns is passed into `del()` so that it can include things like negation.

As the name suggests this doesn't override the initial paths, just adds some extras that will be checked and cleared when `yarn kbn clean` is run.
@spalger spalger added the backport This PR is a backport of another PR label Nov 27, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@spalger spalger merged commit 21c4495 into elastic:6.5 Nov 27, 2018
@spalger spalger deleted the backport/6.5/pr-26132 branch November 27, 2018 23:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants