I'm using Gatsby, which has a long list of sub-dependencies, some of which I'd like to never allow Yarn to install and execute. Ideally I'd like to be able to add a per-project blocklist, but I'm open to other ways of achieving the same goal of not installing specific packages, even if it leads to errors in the direct dependencies that rely on them.
To be clear, I'm not looking to merely install another version of the same package, but instead to prevent it from being installed at all. If I can replace it with a package I control that is just a shim that'd be a nice solution too.
I've tried using resolutions with the package version set to null, but this didn't seem to have an affect.