MasterKale / SimpleWebAuthn

WebAuthn, Simplified. A collection of TypeScript-first libraries for simpler WebAuthn integration. Supports modern browsers, Node, Deno, and more.
https://simplewebauthn.dev
MIT License
1.63k stars 137 forks source link

Refine publish flow #279

Closed MasterKale closed 2 years ago

MasterKale commented 2 years ago

This PR tweaks package configs a bit, but more importantly adds a new "publish" npm script to address #278.

For future reference the "publish" script does the following:

  1. A non-hoisting bootstrap, which creates package-lock.json files in each package
  2. Removes these "leaf" package-lock.json files
  3. Runs Lerna's publish command

Step 2 is required because otherwise Step 3 errors out on a git add command that attempts to add ignored files (in this case the leaf lock files.) Issue #278 has more context and error output.