Publishing
Publish a Mayfly plugin as an ordinary npm Cordis package. Before publication:
package.json.exportstargets real JS and type files;filesincludes build output andcordis.patch.yml;- dsh and Mayfly packages use appropriate peer dependencies;
- the tarball independently installs and passes tests in an empty directory;
- README documents install, injected services, unload behavior, and profile acceptance;
- package name, version, tag, access, provenance, and 2FA are explicit.
sh
npm pack
npm publish --access publicPublish only after explicit authorization for the exact package, version, and tag. GitHub repository creation and npm publication are separate actions.