Skip to content

Commit 4de78e8

Browse files
fix: replace 'husky install' with just 'husky' (#1439)
## PR Checklist - [x] Addresses an existing open issue: fixes #1437 - [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22) - [x] Steps in [CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md) were taken ## Overview Looks like all we need to run is `husky` now.
1 parent d050248 commit 4de78e8

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
2828
"lint:packages": "pnpm dedupe --check",
2929
"lint:spelling": "cspell \"**\" \".github/**/*\"",
30-
"prepare": "husky install",
30+
"prepare": "husky",
3131
"test": "vitest",
3232
"test:create": "node script/create-test-e2e.js",
3333
"test:initialize": "node script/initialize-test-e2e.js",
@@ -83,7 +83,7 @@
8383
"eslint-plugin-vitest": "^0.4.0",
8484
"eslint-plugin-yml": "^1.10.0",
8585
"globby": "^14.0.0",
86-
"husky": "^9.0.0",
86+
"husky": "^9.0.11",
8787
"jsonc-eslint-parser": "^2.4.0",
8888
"knip": "5.7.0",
8989
"lint-staged": "^15.2.0",

pnpm-lock.yaml

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/steps/writing/creation/writePackageJson.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ describe("writePackageJson", () => {
107107
"lint:md": "markdownlint "**/*.md" ".github/**/*.md" --rules sentences-per-line",
108108
"lint:packages": "pnpm dedupe --check",
109109
"lint:spelling": "cspell "**" ".github/**/*"",
110-
"prepare": "husky install",
110+
"prepare": "husky",
111111
"test": "vitest",
112112
"tsc": "tsc",
113113
},
@@ -174,7 +174,7 @@ describe("writePackageJson", () => {
174174
"build": "tsup",
175175
"format": "prettier .",
176176
"lint": "eslint . .*js --max-warnings 0",
177-
"prepare": "husky install",
177+
"prepare": "husky",
178178
"tsc": "tsc",
179179
},
180180
"type": "module",

src/steps/writing/creation/writePackageJson.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export async function writePackageJson(options: Options) {
101101
...(!options.excludeLintSpelling && {
102102
"lint:spelling": 'cspell "**" ".github/**/*"',
103103
}),
104-
prepare: "husky install",
104+
prepare: "husky",
105105
...(!options.excludeReleases && { test: "vitest" }),
106106
tsc: "tsc",
107107
},

0 commit comments

Comments
 (0)