From e967678ab000b4b6dae16e90cb7c380d8183328a Mon Sep 17 00:00:00 2001 From: Jacob Premo Date: Tue, 6 Jan 2026 14:44:04 -0500 Subject: [PATCH] Added prepush typechecking --- .husky/pre-push | 1 + package-lock.json | 16 ++++++++++++++++ package.json | 4 +++- 3 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 0000000..8160734 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1 @@ +npm run typecheck diff --git a/package-lock.json b/package-lock.json index 310649f..45ba15f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,6 +18,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "epicenter-libs": "^3.32.0", + "husky": "^9.1.7", "i18next": "^25.6.0", "jotai": "^2.15.0", "lucide-react": "^0.548.0", @@ -5343,6 +5344,21 @@ "void-elements": "3.1.0" } }, + "node_modules/husky": { + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", + "license": "MIT", + "bin": { + "husky": "bin.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/typicode" + } + }, "node_modules/i18next": { "version": "25.6.2", "resolved": "https://registry.npmjs.org/i18next/-/i18next-25.6.2.tgz", diff --git a/package.json b/package.json index c121ad8..4f73ce4 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "postinstall": "patch-package", "deploy:model": "tsx cli/deploy.ts model", "deploy:public": "tsx cli/deploy.ts public static", - "deploy": "npm-run-all build deploy:*" + "deploy": "npm-run-all build deploy:*", + "prepare": "husky" }, "dependencies": { "@csstools/normalize.css": "^12.1.1", @@ -24,6 +25,7 @@ "class-variance-authority": "^0.7.1", "clsx": "^2.1.1", "epicenter-libs": "^3.32.0", + "husky": "^9.1.7", "i18next": "^25.6.0", "jotai": "^2.15.0", "lucide-react": "^0.548.0",