From 47fd5e44f9490a30e58de668f95df5d4c2ae9605 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 19 Jul 2021 09:33:16 -0400 Subject: [PATCH] Upgrading deps --- .husky/.gitignore | 1 + .husky/pre-commit | 4 ++++ package.json | 6 +----- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .husky/.gitignore create mode 100755 .husky/pre-commit diff --git a/.husky/.gitignore b/.husky/.gitignore new file mode 100644 index 0000000..31354ec --- /dev/null +++ b/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..d2ae35e --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +yarn lint-staged diff --git a/package.json b/package.json index 8afd921..089d48c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "scripts": { "build": "tsc", "lint": "tsc --noEmit && eslint --report-unused-disable-directives --ext .js,.ts,.tsx src", + "postinstall": "husky install", "prepare": "yarn run build" }, "repository": "https://github.com/LemmyNet/lemmy-js-client", @@ -26,11 +27,6 @@ "typescript": "^4.3.5" }, "types": "./dist/index.d.ts", - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, "lint-staged": { "*.{ts,tsx,js}": [ "prettier --write",