diff --git a/package.json b/package.json index 422d9a5c7..0db11d015 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line", "lint:packages": "pnpm dedupe --check", "lint:spelling": "cspell \"**\" \".github/**/*\"", - "prepare": "husky install", + "prepare": "husky", "test": "vitest", "test:create": "node script/create-test-e2e.js", "test:initialize": "node script/initialize-test-e2e.js", @@ -84,7 +84,7 @@ "eslint-plugin-vitest": "^0.4.0", "eslint-plugin-yml": "^1.10.0", "globby": "^14.0.0", - "husky": "^9.0.0", + "husky": "^9.0.11", "jsonc-eslint-parser": "^2.4.0", "knip": "5.6.1", "lint-staged": "^15.2.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7713120c9..b99a2aa2a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -140,7 +140,7 @@ devDependencies: specifier: ^14.0.0 version: 14.0.1 husky: - specifier: ^9.0.0 + specifier: ^9.0.11 version: 9.0.11 jsonc-eslint-parser: specifier: ^2.4.0 diff --git a/src/steps/writing/creation/writePackageJson.test.ts b/src/steps/writing/creation/writePackageJson.test.ts index a3108f423..a1fc046ba 100644 --- a/src/steps/writing/creation/writePackageJson.test.ts +++ b/src/steps/writing/creation/writePackageJson.test.ts @@ -107,7 +107,7 @@ describe("writePackageJson", () => { "lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line", "lint:packages": "pnpm dedupe --check", "lint:spelling": "cspell "**" ".github/**/*"", - "prepare": "husky install", + "prepare": "husky", "test": "vitest", "tsc": "tsc", }, @@ -174,7 +174,7 @@ describe("writePackageJson", () => { "build": "tsup", "format": "prettier .", "lint": "eslint . .*js --max-warnings 0", - "prepare": "husky install", + "prepare": "husky", "tsc": "tsc", }, "type": "module", diff --git a/src/steps/writing/creation/writePackageJson.ts b/src/steps/writing/creation/writePackageJson.ts index 61d9f0a86..64dc749a7 100644 --- a/src/steps/writing/creation/writePackageJson.ts +++ b/src/steps/writing/creation/writePackageJson.ts @@ -101,7 +101,7 @@ export async function writePackageJson(options: Options) { ...(!options.excludeLintSpelling && { "lint:spelling": 'cspell "**" ".github/**/*"', }), - prepare: "husky install", + prepare: "husky", ...(!options.excludeReleases && { test: "vitest" }), tsc: "tsc", },