pls-changeset-me

A package which practically begs for you to generate a changeset if there are any changes

Usage no npm install needed!

<script type="module">
  import plsChangesetMe from 'https://cdn.skypack.dev/pls-changeset-me';
</script>

README

Pls Changeset Me 🥺

A script that will plead for you to write changesets for your changes.

Codeship Status for avatarneil/pls-changeset-me

Prerequisites

  • Repo with changesets
  • NodeJS v15.11+ (may work on earlier versions, but untested!)
  • A burning desire to have your toolchain stop you from making mistakes

Usage

It's as simple as: pnpx pls-changeset-me check

  • You can use it as a pre-commit/pre-push hook with husky!
    • Take a look at .husky/pre-commit for an example. Note the importance of including exec < /dev/tty, unless you want to run in headless mode (note: headless mode is not recommended for pre-commit/pre-push hooks)!
  • You can use it straight from your command line by invoking with pnpx!
  • You can use it to block CI/CD (Jenkins, Codeship, Travis, you name it)! Simply supply the -headless (-h) parameter :)

Commands

Check

Checks for any staged changes which do not yet have a corresponding changeset. By default, prompts the user if they'd like to generate a changeset.

Options
  • -headless -- Runs in a headless mode which will force-exit without user input if there have been any changes that may require a new changeset.

Contributing

Feel free to open issues for any desired features, and cut PRs for any desired changes! I'll do my best to keep this package reasonably maintained. If you'd like to be a maintainer, cut a couple PRs and I'll probably drop you a line :)