Skip to content

Commit

Permalink
fix: replace 'husky install' with just 'husky' (#1439)
Browse files Browse the repository at this point in the history
## 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.
  • Loading branch information
JoshuaKGoldberg committed Apr 8, 2024
1 parent d050248 commit 4de78e8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -83,7 +83,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.7.0",
"lint-staged": "^15.2.0",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/steps/writing/creation/writePackageJson.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/writePackageJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
Expand Down

0 comments on commit 4de78e8

Please sign in to comment.