UNPKG

396 BMarkdownView Raw
1# on-change
2
3Run a command when a file changes since last time the command was executed.
4
5This CLI tool stores a file checksum in a hidden `sha` file every time it run a
6given command. Made to automate running `npm ci` after pulling modified
7`package-lock.json`.
8
9## Install
10
11```sh
12npm install --save-dev @olegjs/on-change
13```
14
15## Example
16
17```sh
18npx on-change --file package-lock.json npm ci
19```