From c8533cd25ee9a4dd3407bae2363cecb821bc207a Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Thu, 12 Dec 2024 11:39:19 -0800 Subject: [PATCH] Yarn only supports postinstall. --- .husky/pre-commit | 2 +- package.json | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 0714b059..d65e8a90 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,2 +1,2 @@ -npx lint-staged +yarn run lint-staged yarn run tsc --noEmit --strict diff --git a/package.json b/package.json index c00f5c93..e99d0495 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "make:nvidia": "yarn run make -- --nvidia", "notarize": "node debug/notarize.js", "package": "yarn run vite:compile && todesktop build --code-sign=false --async", - "prepare": "husky", + "postinstall": "husky", "publish": "yarn run vite:compile && todesktop build --async", "publish:staging": "yarn run vite:compile && todesktop build --config=./todesktop.staging.json --async", "reset-install": "node scripts/resetInstall.js", @@ -50,7 +50,8 @@ "vite:compile": "vite build --config vite.main.config.ts && vite build --config vite.preload.config.ts", "vite:types": "vite build --config vite.types.config.ts && node scripts/prepareTypes.js", "release:types": "node scripts/releaseTypes.js", - "update:frontend": "node scripts/updateFrontend.js" + "update:frontend": "node scripts/updateFrontend.js", + "prepare": "husky" }, "devDependencies": { "@electron/fuses": "^1.8.0",