diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec13..000000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/common.sh b/.husky/common.sh deleted file mode 100644 index 7bf8076bd..000000000 --- a/.husky/common.sh +++ /dev/null @@ -1,8 +0,0 @@ -command_exists () { - command -v "$1" >/dev/null 2>&1 -} - -# Workaround for Windows 10, Git Bash and Yarn -if command_exists winpty && test -t 1; then - exec < /dev/tty -fi diff --git a/.husky/pre-commit b/.husky/pre-commit old mode 100755 new mode 100644 index 0aefdea8a..c27d8893a --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,5 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" -. "$(dirname "$0")/common.sh" - -npx lint-staged +lint-staged diff --git a/package.json b/package.json index 91ee7af53..0f25b812f 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "lerna:modify-package": "lerna exec -- node ../../scripts/modify-pkgjson.mjs", "bootstrap": "lerna run --scope @umbraco-ui/uui-css clean && lerna run --scope @umbraco-ui/uui-css build && node ./scripts/generate-ts-config.js", "check-updates": "npx ncu && npx lerna exec --no-bail -- npx ncu", - "prepare": "husky install", + "prepare": "husky", "new-package": "plop && npm i", "pack-all": "npm run build:prod && node ./scripts/pack-packages.js", "pack-all-no-build": "node ./scripts/pack-packages.js",