Describe the user story
Every now and then, I get a security alert for a package or some package pulls in a random, unused dependency that pollutes the repository and the fix is to simply not install the offending package.
Today, we're solving this by creating a stub package and using resolutions + link: (example) to force resolving the package to our stub instead. We're thinking of formalizing this as a plugin, using the ignore: protocol, and was wondering if this would be of interest in Yarn.
Describe the solution you'd like
Upon finding ignore:, Yarn can create a stub package and link it during installation.
Describe the drawbacks of your solution
Obviously, this will break if the package is actually used. But since you've explicitly added ignore:, it should be undoable.
Describe alternatives you've considered
We are implementing this as a plugin in any case but was wondering if this is interesting upstream.
Describe the user story
Every now and then, I get a security alert for a package or some package pulls in a random, unused dependency that pollutes the repository and the fix is to simply not install the offending package.
Today, we're solving this by creating a stub package and using resolutions +
link:(example) to force resolving the package to our stub instead. We're thinking of formalizing this as a plugin, using theignore:protocol, and was wondering if this would be of interest in Yarn.Describe the solution you'd like
Upon finding
ignore:, Yarn can create a stub package and link it during installation.Describe the drawbacks of your solution
Obviously, this will break if the package is actually used. But since you've explicitly added
ignore:, it should be undoable.Describe alternatives you've considered
We are implementing this as a plugin in any case but was wondering if this is interesting upstream.