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

--modules-folder could be specified in .yarnrc? #2264

Closed
shouze opened this issue Dec 15, 2016 · 3 comments
Closed

--modules-folder could be specified in .yarnrc? #2264

shouze opened this issue Dec 15, 2016 · 3 comments

Comments

@shouze
Copy link

shouze commented Dec 15, 2016

For good reasons (containerization) we decided to put installed node_modules in a directory outside of our repository source code.

So when we build our container the build step uses the --modules-folder option. I wanted to know if it would be specified in .yarnrc but it seems that no?

Is there any reason for that? I can open an RFC if needed when I'll know more about that ;)

@typoworx-de
Copy link

I also vote for any option to specify custom-folder just like bower does using .bowerrc. For neither npm nor yarn are a real option until one can define the paths to their own needs!

@joubertredrat
Copy link

Bump for this, for me that use Symfony and need yarn only to download assets like jQuery and Semantic UI and put on my web folder, if I can to set this on config file is best.

On bower I make this on .bowerrc file with this config.

{
  "directory": "web/assets/vendor/"
}

@rally25rs
Copy link
Contributor

You can specify it in .yarnrc like this:

--*.modules-folder "./wwwroot/lib"

The --*. will make the flag apply to all commands (install, add, etc)

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

No branches or pull requests

4 participants