Skip to content

Commit a59503d

Browse files
committed
update installer instructions in readme and package.json
1 parent ea50a07 commit a59503d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Here's example configuration of `run-if-changed`:
117117
<pre><code class="language-json">
118118
{
119119
"run-if-changed": {
120-
"package-lock.json": "npm install --prefer-offline --no-audit"
120+
"package-lock.json": "npm install --prefer-offline --no-audit --no-fund"
121121
}
122122
}
123123
</code></pre>
@@ -126,7 +126,7 @@ Here's example configuration of `run-if-changed`:
126126

127127
<pre><code class="language-json">
128128
{
129-
"package-lock.json": "npm install --prefer-offline --no-audit"
129+
"package-lock.json": "npm install --prefer-offline --no-audit --no-fund"
130130
}
131131
</code></pre>
132132

@@ -140,7 +140,7 @@ Here's example configuration of `run-if-changed`:
140140
<pre><code class="language-json">
141141
{
142142
"run-if-changed": {
143-
"yarn.lock": "yarn install --prefer-offline --pure-lockfile --color=always"
143+
"yarn.lock": "yarn install --prefer-offline --pure-lockfile --color=always --non-interactive"
144144
}
145145
}
146146
</code></pre>
@@ -149,7 +149,7 @@ Here's example configuration of `run-if-changed`:
149149

150150
<pre><code class="language-json">
151151
{
152-
"yarn.lock": "yarn install --prefer-offline --pure-lockfile --color=always"
152+
"yarn.lock": "yarn install --prefer-offline --pure-lockfile --color=always --non-interactive"
153153
}
154154
</code></pre>
155155

@@ -178,7 +178,7 @@ Here's example configuration of `run-if-changed`:
178178
<pre><code class="language-json">
179179
{
180180
"run-if-changed": {
181-
"Gemfile.lock": "bundle install"
181+
"Gemfile.lock": "bundle install --prefer-local"
182182
}
183183
}
184184
</code></pre>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
}
4444
},
4545
"run-if-changed": {
46-
"package-lock.json": [
47-
"npm install"
46+
"package-lock.json|package.json": [
47+
"npm install --prefer-offline --no-audit --no-fund"
4848
]
4949
},
5050
"lint-staged": {

0 commit comments

Comments
 (0)