You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,17 @@ Configuration should be an object where each key is a file or directory mathed b
70
70
71
71
## What commands are supported?
72
72
73
-
For now, only globally available commands are allowed. PRs welcome so local scripts are used first.
73
+
Supported are any executables installed locally or globally via `npm` or Yarn as well as any executable from your `$PATH`.
74
+
75
+
> Using globally installed scripts is discouraged, since run-if-changed may not work for someone who doesn't have it installed.
76
+
77
+
`run-if-changed` is using [npm-which](https://github.com/timoxley/npm-which) to locate locally installed scripts. So in your `.run-if-changedrc` you can write:
78
+
79
+
```json
80
+
{
81
+
"src": "webpack"
82
+
}
83
+
```
74
84
75
85
Sequences of commands are supported. Pass an array of commands instead of a single one and they will run sequentially.
0 commit comments