When Yarn is used to install dependencies, it puts them in node-modules
directory by default.
How can I change this to i.e Laravel resources
fo
According to Yarn Docs, you can specify directories in package.json
file
{
"directories": {
"lib": "path/to/lib/",
"bin": "path/to/bin/",
"man": "path/to/man/",
"doc": "path/to/doc/",
"example": "path/to/example/"
}
}
When installing your package, you can specify exact locations to put binary files, man pages, documentation, examples, etc.