Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Remove unused dependency find-cache-dir #170

Merged
merged 1 commit into from
Jun 15, 2017

Conversation

genintho
Copy link
Contributor

@genintho genintho commented Apr 4, 2017

PR #159 replace the experimental implementation by something more robust.

So in order to keep things accurate, find-cache-dir should be removed.

The yarn.lock file did not change because find-cache-dir is used behind the scene by other modules.

@@ -100,8 +100,7 @@ some issues cannot be fixed properly.**
This option will enable caching of the linting results into a file.
This is particularly useful in reducing linting time when doing a full build.

The cache file is written to the `./node_modules/.cache` directory, thanks to the usage
of the [find-cache-dir](https://www.npmjs.com/package/find-cache-dir) module.
The cache file is written to the `./node_modules/.cache` directory.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should just remove this, since the module we use might change something?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it is kind of important to mention where the cache is stored. In our case we persist this folder between 2 CI run and have some clean up script to prevent it to grow too much.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So at least we should say "The cache file is probably written to"... (Because if the module change the path, this doc will be irrelevant).

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't node_modules/.cache the standard location for caching? We also fallback to os temp dir if it fails to write to ./node_modules/.cache

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea is: since we use a module that handle this, we don't really know what the deps will rely on, so maybe we should say "we use X" with a link so people can have an up to date link? I am just afraid this doc become out of date someday :)

@MoOx MoOx merged commit 79fa82e into webpack-contrib:master Jun 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants