berry
berry copied to clipboard
[Feature] Auto install project when running any yarn command
- [ ] I'd be willing to implement this feature (contributing guide)
- [x] This feature is important to have in this repository; a contrib plugin wouldn't do
Describe the user story
At my work we do not commit .pnp.cjs files to our repositories -- we don't leverage zero installs. That being said, I'd like a developer to be able to clone a repository and be able to run a command such as yarn eslint . without having to run yarn first. The goal here is to speed up local development and reduce cognitive load from knowing to run multiple commands.
Describe the solution you'd like
I'd like a .yarnrc.yml config option that when enabled would auto run a yarn install instead of throwing:
Usage Error: The project in .../package.json doesn't seem to have been installed - running an install there might help
Describe the drawbacks of your solution
I don't see any drawbacks.