@mm-snap/workers

Snap Web Workers for the MetaMask extension.


License
Other
Install
npm install @mm-snap/workers@0.0.6

Documentation

snaps-skunkworks

Private monorepo for experimental snaps dependencies.

Contributing

Installing

Run yarn setup in the project root directory. Do not run any installation commands in individual workspaces.

If you add a dependency with a lifecycle script, said dependency must be added to the devDependencies and lavamoat.allow-scripts config of the root package.json file. This is currently the only way to use @lavamoat/allow-scripts in monorepos.

Building

For local development, you should run yarn build:clean in the project root directory. This will always build the packages in the correct order.

You can also run yarn build in a workspace, although you have to ensure that the projects are built in the correct order.

@mm-snap/workers has a post-tsc step that must be run, which somewhat complicates the build process. Repository-wide watching is currently not possible.

Testing and Linting

Run yarn test and yarn lint in the project root directory, or in a workspace.

Publishing

Follow the usual release automation workflow, the publish locally from the monorepo root using:

yarn publish:all --otp=YOUR_NPM_OTP_CODE