How to change dependency installation directory at Yarn
How to change dependency directory yarn package manager. yarn default install node_module but I want to install only "fred" library on public directory other library install node_modules directory. I added directories propery but it doesn't work package.json
{
"name": "test",
"title": "test",
"description": "",
"version": "1.0.1",
"directories": {
"fred":":public/"
},
"devDependencies": {
"fred": "1.0.2"
},
"dependencies": {
"sw-toolbox": "^3.4.0",
"fred": "1.0.2"
}
}
As far as I know, there is no way to install some packages to different directories. @yarnpkg/core anyone know if this is a thing that is supported?
--cwd was something @kittens suggested right?
I read this but it doesn't work. https://yarnpkg.com/en/docs/package-json#toc-directories
Thanks guys y'all rock
The directories listing mentioned in there is for published packages if I understand it correctly, not to put packages in a certain folder.