diff --git a/package-lock.json b/package-lock.json index a61bbc22..4a197f3b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3144,9 +3144,9 @@ } }, "node_modules/@npmcli/agent/node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.3.tgz", + "integrity": "sha512-kCnwztfX0KZJSLOBrcL0emLeFako55NWMovvyPP2AjsghNk9RB1yjSI+jVumPHYZsNXegNoqupSW9IY3afSH8w==", "dev": true, "dependencies": { "agent-base": "^7.0.2", @@ -6154,9 +6154,9 @@ } }, "node_modules/@sindresorhus/merge-streams": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.1.0.tgz", - "integrity": "sha512-g3/sYJWXTAf3Ce861z4/mW9jDxN7hoNHZMEyhd3Zh7GKQPiovWNttzhRW2BeGPwPxPpLDKumL6Sg056VAMjdkg==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@sindresorhus/merge-streams/-/merge-streams-2.2.0.tgz", + "integrity": "sha512-UTce8mUwUW0RikMb/eseJ7ys0BRkZVFB86orHzrfW12ZmFtym5zua8joZ4L7okH2dDFHkcFjqnZ5GocWBXOFtA==", "dev": true, "engines": { "node": ">=18" @@ -10684,14 +10684,15 @@ } }, "node_modules/call-bind": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.6.tgz", - "integrity": "sha512-Mj50FLHtlsoVfRfnHaZvyrooHcrlceNZdL/QBvJJVd9Ta55qCQK0gs4ss2oZDeV9zFCs6ewzYgVE5yfVmfFpVg==", + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.7.tgz", + "integrity": "sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w==", "dependencies": { + "es-define-property": "^1.0.0", "es-errors": "^1.3.0", "function-bind": "^1.1.2", - "get-intrinsic": "^1.2.3", - "set-function-length": "^1.2.0" + "get-intrinsic": "^1.2.4", + "set-function-length": "^1.2.1" }, "engines": { "node": ">= 0.4" @@ -12820,9 +12821,9 @@ } }, "node_modules/data-uri-to-buffer": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.1.tgz", - "integrity": "sha512-MZd3VlchQkp8rdend6vrx7MmVDJzSNTBvghvKjirLkD+WTChA3KUf0jkE68Q4UyctNqI11zZO9/x2Yx+ub5Cvg==", + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-6.0.2.tgz", + "integrity": "sha512-7hvf7/GW8e86rW0ptuwS3OcBGDjIi6SZva7hCyWC0yYry2cOPmLIjXAUHI6DK2HsnwJd9ifmt57i8eV2n4YNpw==", "dev": true, "engines": { "node": ">= 14" @@ -13201,17 +13202,20 @@ } }, "node_modules/define-data-property": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.2.tgz", - "integrity": "sha512-SRtsSqsDbgpJBbW3pABMCOt6rQyeM8s8RiyeSN8jYG8sYmt/kGJejbydttUsnDs1tadr19tvhT4ShwMyoqAm4g==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.3.tgz", + "integrity": "sha512-h3GBouC+RPtNX2N0hHVLo2ZwPYurq8mLmXpOLTsw71gr7lHt5VaI4vVkDUNOfiWmm48JEXe3VM7PmLX45AMmmg==", "dependencies": { "es-errors": "^1.3.0", - "get-intrinsic": "^1.2.2", + "get-intrinsic": "^1.2.4", "gopd": "^1.0.1", "has-property-descriptors": "^1.0.1" }, "engines": { "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/define-lazy-prop": { @@ -13951,9 +13955,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.4.665", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.665.tgz", - "integrity": "sha512-UpyCWObBoD+nSZgOC2ToaIdZB0r9GhqT2WahPKiSki6ckkSuKhQNso8V2PrFcHBMleI/eqbKgVQgVC4Wni4ilw==" + "version": "1.4.667", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.667.tgz", + "integrity": "sha512-66L3pLlWhTNVUhnmSA5+qDM3fwnXsM6KAqE36e2w4KN0g6pkEtlT5bs41FQtQwVwKnfhNBXiWRLPs30HSxd7Kw==" }, "node_modules/elliptic": { "version": "6.5.4", @@ -14263,6 +14267,17 @@ "integrity": "sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA==", "devOptional": true }, + "node_modules/es-define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.0.tgz", + "integrity": "sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ==", + "dependencies": { + "get-intrinsic": "^1.2.4" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/es-errors": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", @@ -17522,50 +17537,32 @@ } }, "node_modules/get-uri": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.2.tgz", - "integrity": "sha512-5KLucCJobh8vBY1K07EFV4+cPZH3mrV9YeAruUseCQKHB58SGjjT2l9/eA9LD082IiuMjSlFJEcdJ27TXvbZNw==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/get-uri/-/get-uri-6.0.3.tgz", + "integrity": "sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==", "dev": true, "dependencies": { "basic-ftp": "^5.0.2", - "data-uri-to-buffer": "^6.0.0", + "data-uri-to-buffer": "^6.0.2", "debug": "^4.3.4", - "fs-extra": "^8.1.0" + "fs-extra": "^11.2.0" }, "engines": { "node": ">= 14" } }, "node_modules/get-uri/node_modules/fs-extra": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", - "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dev": true, "dependencies": { "graceful-fs": "^4.2.0", - "jsonfile": "^4.0.0", - "universalify": "^0.1.0" + "jsonfile": "^6.0.1", + "universalify": "^2.0.0" }, "engines": { - "node": ">=6 <7 || >=8" - } - }, - "node_modules/get-uri/node_modules/jsonfile": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", - "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", - "dev": true, - "optionalDependencies": { - "graceful-fs": "^4.1.6" - } - }, - "node_modules/get-uri/node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true, - "engines": { - "node": ">= 4.0.0" + "node": ">=14.14" } }, "node_modules/get-value": { @@ -19735,11 +19732,11 @@ } }, "node_modules/has-property-descriptors": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.1.tgz", - "integrity": "sha512-VsX8eaIewvas0xnvinAe9bw4WfIeODpGYikiWYLH+dma0Jw6KHYqWiWfhQlgOVK8D6PvjubK5Uc4P0iIhIcNVg==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz", + "integrity": "sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg==", "dependencies": { - "get-intrinsic": "^1.2.2" + "es-define-property": "^1.0.0" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -20254,9 +20251,9 @@ } }, "node_modules/http-proxy-agent": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.0.tgz", - "integrity": "sha512-+ZT+iBxVUQ1asugqnD6oWoRiS25AkjNfG085dKJGtGxkdwLQrMKU5wJr2bOOFAXzKcTuqq+7fZlTMgG3SRfIYQ==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-7.0.1.tgz", + "integrity": "sha512-My1KCEPs6A0hb4qCVzYp8iEvA8j8YqcvXLZZH8C9OFuTYpYjHE7N2dtG3mRl1HMD4+VGXpF3XcDVcxGBT7yDZQ==", "dev": true, "dependencies": { "agent-base": "^7.1.0", @@ -20363,15 +20360,15 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.0.10", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.0.10.tgz", + "integrity": "sha512-TQGNknoiy6bURzIO77pPRu+XHi6zI7T93rX+QnJsoYFf3xdjKOur+IlfqzJGMHIK/wXrLg+GsvMs8Op7vI2jVA==", "dev": true, "bin": { - "husky": "lib/bin.js" + "husky": "bin.mjs" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" @@ -21330,12 +21327,6 @@ "node": ">=0.10.0" } }, - "node_modules/ip": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.8.tgz", - "integrity": "sha512-PuExPYUiu6qMBQb4l06ecm6T6ujzhmh+MeJcW9wa89PoAz5pvd4zPgN5WJV104mb6S2T1AwNIAaB70JNrLQWhg==", - "dev": true - }, "node_modules/ip-address": { "version": "9.0.5", "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", @@ -30827,9 +30818,9 @@ } }, "node_modules/pac-proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.3.tgz", + "integrity": "sha512-kCnwztfX0KZJSLOBrcL0emLeFako55NWMovvyPP2AjsghNk9RB1yjSI+jVumPHYZsNXegNoqupSW9IY3afSH8w==", "dev": true, "dependencies": { "agent-base": "^7.0.2", @@ -30840,13 +30831,12 @@ } }, "node_modules/pac-resolver": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.0.tgz", - "integrity": "sha512-Fd9lT9vJbHYRACT8OhCbZBbxr6KRSawSovFpy8nDGshaK99S/EBhVIHp9+crhxrsZOuvLpgL1n23iyPg6Rl2hg==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/pac-resolver/-/pac-resolver-7.0.1.tgz", + "integrity": "sha512-5NPgf87AT2STgwa2ntRMr45jTKrYBGkVU36yT0ig/n/GMAa3oPqhZfIQ2kMEimReg0+t9kZViDVZ83qfVUlckg==", "dev": true, "dependencies": { "degenerator": "^5.0.0", - "ip": "^1.1.8", "netmask": "^2.0.2" }, "engines": { @@ -33276,9 +33266,9 @@ } }, "node_modules/proxy-agent/node_modules/https-proxy-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.2.tgz", - "integrity": "sha512-NmLNjm6ucYwtcUmL7JQC1ZQ57LmHP4lT15FQ8D61nak1rO6DH+fz5qNK2Ap5UN4ZapYICE3/0KodcLYSPsPbaA==", + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-7.0.3.tgz", + "integrity": "sha512-kCnwztfX0KZJSLOBrcL0emLeFako55NWMovvyPP2AjsghNk9RB1yjSI+jVumPHYZsNXegNoqupSW9IY3afSH8w==", "dev": true, "dependencies": { "agent-base": "^7.0.2", @@ -43165,9 +43155,9 @@ } }, "node_modules/yeoman-environment/node_modules/diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "devOptional": true, "peer": true, "engines": { @@ -45528,9 +45518,9 @@ "dev": true }, "node_modules/yo/node_modules/diff": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.1.0.tgz", - "integrity": "sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw==", + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, "engines": { "node": ">=0.3.1" @@ -47744,7 +47734,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", @@ -47805,7 +47795,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", @@ -47885,7 +47875,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", diff --git a/packages/generator-nitro/generators/app/templates/.husky/pre-commit b/packages/generator-nitro/generators/app/templates/.husky/pre-commit index e3b90800..79e2ae87 100644 --- a/packages/generator-nitro/generators/app/templates/.husky/pre-commit +++ b/packages/generator-nitro/generators/app/templates/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # if husky config is not in git root<% if (git.project) { %> cd <%= git.project %> || return<% } else { %> # cd ./... || return<% } %> diff --git a/packages/generator-nitro/generators/app/templates/CUTAWAYpackage.json b/packages/generator-nitro/generators/app/templates/CUTAWAYpackage.json index 011cfa0e..f3003234 100644 --- a/packages/generator-nitro/generators/app/templates/CUTAWAYpackage.json +++ b/packages/generator-nitro/generators/app/templates/CUTAWAYpackage.json @@ -20,7 +20,7 @@ "nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro", "update-dependencies": "npm-check-updates -u --deprecated", "\n# MISC ------- ": "", - "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky install <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %>npx playwright install && <% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts", + "postinstall": "<% if (git.root) { %>cd <%= git.root %> && husky <% if (git.project) { %><%= git.project %>/.husky && cd <%= git.project %> <% } %>&& <% } %>npx playwright install && <% if (options.themes) { %>npm rebuild node-sass && <% } %>env-linter<% if (git.root) { %> --hooksInstalled<% } %> --saveExact --dependenciesExactVersion --lts", "\n# LINT/TEST ------- ": "", "check-node-version": "check-node-version --print --package", "cypress-test": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race prod:serve cypress-test:open", @@ -121,7 +121,7 @@ "generator-nitro": "<%= version %>", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2",<% if (options.themes) { %> diff --git a/packages/generator-nitro/generators/app/templates/project/docs/nitro.md b/packages/generator-nitro/generators/app/templates/project/docs/nitro.md index 765d01d1..9c4f1f22 100644 --- a/packages/generator-nitro/generators/app/templates/project/docs/nitro.md +++ b/packages/generator-nitro/generators/app/templates/project/docs/nitro.md @@ -30,12 +30,6 @@ Install the project dependencies in the project root: npm ci ``` -On Mac you need to make sure that githooks are executable, e.g. - -``` -chmod +x .husky/pre-commit -``` - ## Starting the app Use diff --git a/packages/generator-nitro/generators/app/templates/readme.md b/packages/generator-nitro/generators/app/templates/readme.md index ecaf7e17..0d898c1d 100644 --- a/packages/generator-nitro/generators/app/templates/readme.md +++ b/packages/generator-nitro/generators/app/templates/readme.md @@ -13,12 +13,6 @@ Run: npm ci ``` -On Mac you need to make sure that githooks are executable: - -``` -chmod +x .husky/pre-commit -``` - and start in development mode ``` diff --git a/packages/project-nitro-twig/.husky/pre-commit b/packages/project-nitro-twig/.husky/pre-commit index 006ba77a..ef5e3aac 100644 --- a/packages/project-nitro-twig/.husky/pre-commit +++ b/packages/project-nitro-twig/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # if husky config is not in git root cd ./packages/project-nitro-twig || return npx lint-staged diff --git a/packages/project-nitro-twig/package.json b/packages/project-nitro-twig/package.json index 6472f4d1..fb10b7c5 100644 --- a/packages/project-nitro-twig/package.json +++ b/packages/project-nitro-twig/package.json @@ -110,7 +110,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", diff --git a/packages/project-nitro-twig/project/docs/nitro.md b/packages/project-nitro-twig/project/docs/nitro.md index cf03c663..2021aee4 100644 --- a/packages/project-nitro-twig/project/docs/nitro.md +++ b/packages/project-nitro-twig/project/docs/nitro.md @@ -30,12 +30,6 @@ Install the project dependencies in the project root: npm ci ``` -On Mac you need to make sure that githooks are executable, e.g. - -``` -chmod +x .husky/pre-commit -``` - ## Starting the app Use diff --git a/packages/project-nitro-twig/readme.md b/packages/project-nitro-twig/readme.md index ecaf7e17..0d898c1d 100644 --- a/packages/project-nitro-twig/readme.md +++ b/packages/project-nitro-twig/readme.md @@ -13,12 +13,6 @@ Run: npm ci ``` -On Mac you need to make sure that githooks are executable: - -``` -chmod +x .husky/pre-commit -``` - and start in development mode ``` diff --git a/packages/project-nitro-typescript/.husky/pre-commit b/packages/project-nitro-typescript/.husky/pre-commit index ce7ce329..92c7da66 100644 --- a/packages/project-nitro-typescript/.husky/pre-commit +++ b/packages/project-nitro-typescript/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # if husky config is not in git root cd ./packages/project-nitro-typescript || return npx lint-staged diff --git a/packages/project-nitro-typescript/package.json b/packages/project-nitro-typescript/package.json index f6b1b894..c1de7a65 100644 --- a/packages/project-nitro-typescript/package.json +++ b/packages/project-nitro-typescript/package.json @@ -112,7 +112,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", diff --git a/packages/project-nitro-typescript/project/docs/nitro.md b/packages/project-nitro-typescript/project/docs/nitro.md index 91736b80..8b8edf7c 100644 --- a/packages/project-nitro-typescript/project/docs/nitro.md +++ b/packages/project-nitro-typescript/project/docs/nitro.md @@ -30,12 +30,6 @@ Install the project dependencies in the project root: npm ci ``` -On Mac you need to make sure that githooks are executable, e.g. - -``` -chmod +x .husky/pre-commit -``` - ## Starting the app Use diff --git a/packages/project-nitro-typescript/readme.md b/packages/project-nitro-typescript/readme.md index ecaf7e17..0d898c1d 100644 --- a/packages/project-nitro-typescript/readme.md +++ b/packages/project-nitro-typescript/readme.md @@ -13,12 +13,6 @@ Run: npm ci ``` -On Mac you need to make sure that githooks are executable: - -``` -chmod +x .husky/pre-commit -``` - and start in development mode ``` diff --git a/packages/project-nitro/.husky/pre-commit b/packages/project-nitro/.husky/pre-commit index 6b4ce383..dada3663 100644 --- a/packages/project-nitro/.husky/pre-commit +++ b/packages/project-nitro/.husky/pre-commit @@ -1,6 +1,3 @@ -#!/usr/bin/env sh -. "$(dirname -- "$0")/_/husky.sh" - # if husky config is not in git root cd ./packages/project-nitro || return npx lint-staged diff --git a/packages/project-nitro/package.json b/packages/project-nitro/package.json index 9450e3cd..da03faa5 100644 --- a/packages/project-nitro/package.json +++ b/packages/project-nitro/package.json @@ -20,7 +20,7 @@ "nitro:update": "npm uninstall generator-nitro && npm install generator-nitro@latest --save-dev --save-exact && yo nitro", "update-dependencies": "npm-check-updates -u --deprecated", "\n# MISC ------- ": "", - "postinstall": "cd ../../ && husky install ./packages/project-nitro/.husky && cd ./packages/project-nitro && npx playwright install && npm rebuild node-sass", + "postinstall": "cd ../../ && husky ./packages/project-nitro/.husky && cd ./packages/project-nitro && npx playwright install && npm rebuild node-sass", "\n# LINT/TEST ------- ": "", "check-node-version": "check-node-version --print --package", "cypress-test": "npm run build && cross-env PORT=8888 NITRO_MODE=test npm-run-all --parallel --race prod:serve cypress-test:open", @@ -116,7 +116,7 @@ "generator-nitro": "*", "gulp": "4.0.2", "html-validate": "7.18.1", - "husky": "8.0.3", + "husky": "9.0.10", "license-checker": "25.0.1", "lighthouse": "11.5.0", "lint-staged": "15.2.2", diff --git a/packages/project-nitro/project/docs/nitro.md b/packages/project-nitro/project/docs/nitro.md index 1076f146..07e63316 100644 --- a/packages/project-nitro/project/docs/nitro.md +++ b/packages/project-nitro/project/docs/nitro.md @@ -30,12 +30,6 @@ Install the project dependencies in the project root: npm ci ``` -On Mac you need to make sure that githooks are executable, e.g. - -``` -chmod +x .husky/pre-commit -``` - ## Starting the app Use diff --git a/packages/project-nitro/readme.md b/packages/project-nitro/readme.md index ecaf7e17..0d898c1d 100644 --- a/packages/project-nitro/readme.md +++ b/packages/project-nitro/readme.md @@ -13,12 +13,6 @@ Run: npm ci ``` -On Mac you need to make sure that githooks are executable: - -``` -chmod +x .husky/pre-commit -``` - and start in development mode ```