diff --git a/.husky/pre-publish b/.husky/pre-publish new file mode 100755 index 0000000..3c9ba49 --- /dev/null +++ b/.husky/pre-publish @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npm run exportnpm run export diff --git a/package-lock.json b/package-lock.json index 7814ba9..6d9f2bb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6804,6 +6804,12 @@ "resolved": "https://registry.npmjs.org/humps/-/humps-2.0.1.tgz", "integrity": "sha1-3QLqYIG9BWjcXQcxhEY5V7qe+ao=" }, + "husky": { + "version": "7.0.4", + "resolved": "https://registry.npmjs.org/husky/-/husky-7.0.4.tgz", + "integrity": "sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ==", + "dev": true + }, "iconv-lite": { "version": "0.4.24", "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", diff --git a/package.json b/package.json index 15bbfad..331e2de 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "prepare": "husky install" }, "eslintConfig": { "extends": "react-app" @@ -37,5 +38,8 @@ "last 1 safari version" ] }, - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "devDependencies": { + "husky": "^7.0.0" + } }