chore: harden npm and yarn config - #180
Conversation
|
Hey @mikesposito, I saw Lavamoat's guide include some extra steps including the preferred use of the package |
Mrtenz
left a comment
There was a problem hiding this comment.
I'm working on a full integration of LavaMoat/harden in the core repository. This is a bit more involved than adding some config files, as the latest version of harden includes a Yarn plugin which limits permissions of package.json scripts. Still working through some bugs with Zb before we can use this in monorepos though.
There was a problem hiding this comment.
Most of this should be unnecessary, since we use Yarn.
See the module template for reference: https://github.com/MetaMask/metamask-module-template/blob/f20b5e7c1ed6f4d4e2f1beb7eb06898aa66be0c0/.npmrc
There was a problem hiding this comment.
If you add a devEngines config, npm is completely disabled.
|
Closing this until this work is done on |
Explanation
Hardening dev environment for this repo. See https://lavamoat.github.io/guides/hardening-dev/
References
Checklist