diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index da726ba2..54352e42 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -30,7 +30,7 @@ jobs: check-latest: true - name: Install dependencies # Cypress has a postinstall script that doesn't work on older Node.js versions - run: npm ci --ignore-scripts + run: npm ci --no-audit --ignore-scripts - name: Build For All run: npm run build:json - name: Build For Browser @@ -74,7 +74,7 @@ jobs: restore-keys: | ${{ runner.os }}-node- - name: Install dependencies - run: npm install + run: npm ci --no-audit - name: Build For Browser run: npm run build - name: Tests diff --git a/package-lock.json b/package-lock.json index 708fb375..c6b03f48 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,6 +32,7 @@ "del": "^6.0.0", "execa": "^5.0.0", "html-webpack-plugin": "^5.0.0", + "husky": "^7.0.4", "is-ci": "^3.0.0", "node-static": "^0.7.11", "path-browserify": "^1.0.1", @@ -2519,21 +2520,6 @@ "node": ">=16.0.0" } }, - "node_modules/@netlify/eslint-config-node/node_modules/husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", - "dev": true, - "bin": { - "husky": "lib/bin.js" - }, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/typicode" - } - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -9174,6 +9160,21 @@ "node": ">=10.17.0" } }, + "node_modules/husky": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", + "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "dev": true, + "bin": { + "husky": "lib/bin.js" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -13217,9 +13218,9 @@ } }, "node_modules/regexp.prototype.flags": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.2.tgz", - "integrity": "sha512-uaro52GSI5be7+ssxjxxnLlleDBN3VHIWQHvBhfeeSXRQkuV/0Jo/hBU+omYH6NUkM+LYpTHnRRf2W/v+x7LzQ==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", + "integrity": "sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==", "dev": true, "dependencies": { "call-bind": "^1.0.2", @@ -18186,14 +18187,6 @@ "npm-run-all": "^4.1.5", "prettier": "^2.1.2", "statuses": "^2.0.1" - }, - "dependencies": { - "husky": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", - "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", - "dev": true - } } }, "@nodelib/fs.scandir": { @@ -23302,6 +23295,12 @@ "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, + "husky": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", + "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "dev": true + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", @@ -26305,9 +26304,9 @@ "dev": true }, "regexp.prototype.flags": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.3.2.tgz", - "integrity": "sha512-uaro52GSI5be7+ssxjxxnLlleDBN3VHIWQHvBhfeeSXRQkuV/0Jo/hBU+omYH6NUkM+LYpTHnRRf2W/v+x7LzQ==", + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", + "integrity": "sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==", "dev": true, "requires": { "call-bind": "^1.0.2", diff --git a/package.json b/package.json index 1788c926..01447aa9 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "src/**/*.js" ], "scripts": { + "prepare": "husky install node_modules/@netlify/eslint-config-node/.husky/", "prepublishOnly": "npm ci && run-s build test", "build": "run-s build:*", "build:json": "node scripts/transform_json.js", @@ -35,12 +36,6 @@ "test:ci:ava": "c8 -r lcovonly -r text -r json ava", "test:ci:cypress": "node cypress/run.js" }, - "husky": { - "hooks": { - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS", - "pre-push": "npm run format" - } - }, "keywords": [ "dependency-management", "continuous-integration", @@ -98,6 +93,7 @@ "del": "^6.0.0", "execa": "^5.0.0", "html-webpack-plugin": "^5.0.0", + "husky": "^7.0.4", "is-ci": "^3.0.0", "node-static": "^0.7.11", "path-browserify": "^1.0.1",