Skip to content

Commit 8ed72d5

Browse files
authored
chore: fix Husky (#4041)
1 parent ed62e19 commit 8ed72d5

File tree

3 files changed

+8
-13
lines changed

3 files changed

+8
-13
lines changed

.github/workflows/benchmark.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache-dependency-path: 'npm-shrinkwrap.json'
2121
check-latest: true
2222
- name: Install dependencies
23-
run: npm install --production --no-audit
23+
run: npm ci --no-audit
2424
- name: Get size
2525
run: du -sk node_modules | cut -f1 > .delta.packageSize && echo "kb (Package size)" >> .delta.packageSize
2626
- name: Run Delta

npm-shrinkwrap.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
"url": "https://github.com/netlify/cli/issues"
4343
},
4444
"scripts": {
45+
"prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/",
4546
"prepublishOnly": "run-s prepublishOnly:*",
4647
"prepublishOnly:test": "run-local \"npm test\"",
4748
"start": "node ./bin/run",
@@ -221,11 +222,5 @@
221222
"failWithoutAssertions": false,
222223
"tap": false,
223224
"timeout": "5m"
224-
},
225-
"husky": {
226-
"hooks": {
227-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
228-
"pre-push": "npm run format"
229-
}
230225
}
231226
}

0 commit comments

Comments
 (0)