pls-changeset-me

0.0.11 • Public • Published

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 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 :)

Package Sidebar

Install

npm i pls-changeset-me

Weekly Downloads

0

Version

0.0.11

License

MIT

Unpacked Size

14.3 kB

Total Files

8

Last publish

Collaborators

  • avatarneil