Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add yarn-cache to ignored paths #184

Closed
wants to merge 2 commits into from
Closed

Conversation

hugomrdias
Copy link

for some CIs we need to change yarn-cache to the working directory so it can be cache between builds

for some CIs we need to change yarn-cache to the working directory so it can be cache between builds
@marionebl
Copy link
Contributor

The default yarn cache does not reside in process.cwd(), correct?
xo has to be conservative with additional default ignores to avoid surprises for users, so I'd vote against adding this special case.

You can ignore the directory via the ignore flag instead:

xo --ignore yarn-cache/**/*

or the ignores option:

{
  "xo": {
    "ignores": ["yarn-cache/**/*"]
   }
}

Alternatively you can add it to .gitignore as xo evaluates it, too.

@marionebl marionebl closed this Mar 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants