aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-x.husky/commit-msg6
-rwxr-xr-x.husky/pre-commit4
-rw-r--r--package.json1
3 files changed, 6 insertions, 5 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg
index e8511ea..80416c7 100755
--- a/.husky/commit-msg
+++ b/.husky/commit-msg
@@ -1,4 +1,4 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
-npx --no-install commitlint --edit $1
+npx --no-install commitlint --edit "$1"
diff --git a/.husky/pre-commit b/.husky/pre-commit
index d2ae35e..5a182ef 100755
--- a/.husky/pre-commit
+++ b/.husky/pre-commit
@@ -1,4 +1,4 @@
-#!/bin/sh
-. "$(dirname "$0")/_/husky.sh"
+#!/usr/bin/env sh
+. "$(dirname -- "$0")/_/husky.sh"
yarn lint-staged
diff --git a/package.json b/package.json
index 19829df..6245b81 100644
--- a/package.json
+++ b/package.json
@@ -29,6 +29,7 @@
"deploy": "sh ./bin/deploy.sh",
"i18n:compile": "formatjs compile-folder src/i18n lang/",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --out-file src/i18n/en.json",
+ "prepare": "husky install",
"release": "commit-and-tag-version -s --no-verify",
"test": "yarn run test:unit && yarn run test:e2e",
"test:e2e": "cypress run",