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