diff --git a/.github/workflows/analyze-dependents.yml b/.github/workflows/analyze-dependents.yml index f96416e1d9..e3de0115cf 100644 --- a/.github/workflows/analyze-dependents.yml +++ b/.github/workflows/analyze-dependents.yml @@ -227,7 +227,7 @@ jobs: with: node-version: ${{ env.NODE_VER }} - name: Install dependencies - run: npm ci --ignore-scripts + run: npm ci working-directory: dependent-usage-analyzer - name: Download dependent project checkouts uses: actions/download-artifact@v2 diff --git a/.husky/pre-commit b/.husky/pre-commit index d24fdfc601..2312dc587f 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - npx lint-staged diff --git a/package-lock.json b/package-lock.json index 9d47e688c3..ef28718393 100644 --- a/package-lock.json +++ b/package-lock.json @@ -87,7 +87,7 @@ "eslint-plugin-jsx-a11y": "6.7.1", "eslint-plugin-react": "7.32.2", "eslint-plugin-react-hooks": "4.6.0", - "husky": "^8.0.1", + "husky": "^9.0.11", "identity-obj-proxy": "^3.0.0", "jest": "^28.1.3", "jest-cli": "^28.1.2", @@ -21145,14 +21145,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", + "version": "9.0.11", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.11.tgz", + "integrity": "sha512-AB6lFlbwwyIqMdHYhwPe+kjOC3Oc5P3nThEoW/AaO2BX3vJDjWPFxYLxokUZOo6RNX20He3AaT8sESs9NJcmEw==", "dev": true, - "license": "MIT", "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index 4f4f296b3d..21a4f93aa9 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "build-types": "tsc --emitDeclarationOnly", "playroom:start": "npm run playroom:start --workspace=www", "playroom:build": "npm run playroom:build --workspace=www", - "prepare": "husky install" + "prepare": "husky || true" }, "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.1.1", @@ -123,7 +123,7 @@ "eslint-plugin-jsx-a11y": "6.7.1", "eslint-plugin-react": "7.32.2", "eslint-plugin-react-hooks": "4.6.0", - "husky": "^8.0.1", + "husky": "^9.0.11", "identity-obj-proxy": "^3.0.0", "jest": "^28.1.3", "jest-cli": "^28.1.2",