Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 009ff65

Browse files
committed
chore: fix Husky
1 parent 2212916 commit 009ff65

File tree

3 files changed

+32
-37
lines changed

3 files changed

+32
-37
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
check-latest: true
3131
- name: Install dependencies
3232
# Cypress has a postinstall script that doesn't work on older Node.js versions
33-
run: npm ci --ignore-scripts
33+
run: npm ci --no-audit --ignore-scripts
3434
- name: Build For All
3535
run: npm run build:json
3636
- name: Build For Browser
@@ -74,7 +74,7 @@ jobs:
7474
restore-keys: |
7575
${{ runner.os }}-node-
7676
- name: Install dependencies
77-
run: npm install
77+
run: npm ci --no-audit
7878
- name: Build For Browser
7979
run: npm run build
8080
- name: Tests

package-lock.json

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

package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"src/**/*.js"
1111
],
1212
"scripts": {
13+
"prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/",
1314
"prepublishOnly": "npm ci && run-s build test",
1415
"build": "run-s build:*",
1516
"build:json": "node scripts/transform_json.js",
@@ -35,12 +36,6 @@
3536
"test:ci:ava": "c8 -r lcovonly -r text -r json ava",
3637
"test:ci:cypress": "node cypress/run.js"
3738
},
38-
"husky": {
39-
"hooks": {
40-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
41-
"pre-push": "npm run format"
42-
}
43-
},
4439
"keywords": [
4540
"dependency-management",
4641
"continuous-integration",
@@ -98,6 +93,7 @@
9893
"del": "^6.0.0",
9994
"execa": "^5.0.0",
10095
"html-webpack-plugin": "^5.0.0",
96+
"husky": "^7.0.4",
10197
"is-ci": "^3.0.0",
10298
"node-static": "^0.7.11",
10399
"path-browserify": "^1.0.1",

0 commit comments

Comments
 (0)