From d34fdedf00a37472b5f2780cba3b9fcc49f7b162 Mon Sep 17 00:00:00 2001 From: rmenner Date: Mon, 16 Dec 2024 13:26:32 -0500 Subject: [PATCH] perf: testing out latest husky to fix release #112 --- .github/ISSUE_TEMPLATE/blueprint.md | 2 +- .husky/_/husky.sh | 39 +++++------------------------ .husky/commit-msg | 3 +-- .husky/pre-commit | 3 --- package-lock.json | 13 +++++----- package.json | 4 +-- 6 files changed, 17 insertions(+), 47 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/blueprint.md b/.github/ISSUE_TEMPLATE/blueprint.md index fe3a0447..16c053cc 100644 --- a/.github/ISSUE_TEMPLATE/blueprint.md +++ b/.github/ISSUE_TEMPLATE/blueprint.md @@ -2,7 +2,7 @@ name: Component Blueprint about: Checklist for releasing a new component blueprint title: '[Component Blueprint]' -labels: 'auro-form, Type: Design, not-reviewed' +labels: 'auro-formkit, Type: Design, not-reviewed' assignees: leeejune --- diff --git a/.husky/_/husky.sh b/.husky/_/husky.sh index cec959a6..f9d06379 100644 --- a/.husky/_/husky.sh +++ b/.husky/_/husky.sh @@ -1,36 +1,9 @@ -#!/usr/bin/env sh -if [ -z "$husky_skip_init" ]; then - debug () { - if [ "$HUSKY_DEBUG" = "1" ]; then - echo "husky (debug) - $1" - fi - } - - readonly hook_name="$(basename -- "$0")" - debug "starting $hook_name..." - - if [ "$HUSKY" = "0" ]; then - debug "HUSKY env variable is set to 0, skipping hook" - exit 0 - fi +echo "husky - DEPRECATED - if [ -f ~/.huskyrc ]; then - debug "sourcing ~/.huskyrc" - . ~/.huskyrc - fi +Please remove the following two lines from $0: - readonly husky_skip_init=1 - export husky_skip_init - sh -e "$0" "$@" - exitCode="$?" - - if [ $exitCode != 0 ]; then - echo "husky - $hook_name hook exited with code $exitCode (error)" - fi - - if [ $exitCode = 127 ]; then - echo "husky - command not found in PATH=$PATH" - fi +#!/usr/bin/env sh +. \"\$(dirname -- \"\$0\")/_/husky.sh\" - exit $exitCode -fi +They WILL FAIL in v10.0.0 +" \ No newline at end of file diff --git a/.husky/commit-msg b/.husky/commit-msg index 0bd658f4..d4ffb123 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,4 +1,3 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" +# .husky/pre-commit npx --no-install commitlint --edit "$1" diff --git a/.husky/pre-commit b/.husky/pre-commit index 3da3b919..dce0381e 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - ./node_modules/.bin/npm-run-all preCommit lint postinstall diff --git a/package-lock.json b/package-lock.json index 46623250..0d71ab39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,7 +37,7 @@ "core-js": "^3.38.1", "eslint": "^9.14.0", "eslint-plugin-jsdoc": "^50.5.0", - "husky": "^8.0.0", + "husky": "^9.1.7", "lodash": "^4.17.21", "markdown-magic": "^2.6.1", "nodemon": "^3.1.7", @@ -9410,15 +9410,16 @@ } }, "node_modules/husky": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/husky/-/husky-8.0.3.tgz", - "integrity": "sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg==", + "version": "9.1.7", + "resolved": "https://registry.npmjs.org/husky/-/husky-9.1.7.tgz", + "integrity": "sha512-5gs5ytaNjBrh5Ow3zrvdUUY+0VxIuWVL4i9irt6friV+BqdCfmV11CQTWMiBYWHbXhco+J1kHfTOUkePhCDvMA==", "dev": true, + "license": "MIT", "bin": { - "husky": "lib/bin.js" + "husky": "bin.js" }, "engines": { - "node": ">=14" + "node": ">=18" }, "funding": { "url": "https://github.com/sponsors/typicode" diff --git a/package.json b/package.json index a468a037..c29ef274 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "build:docs:kit": "turbo run --filter=@auro-formkit/build-tools build:docs:kit", "sweep": "find ./components ./packages -type d -name 'dist' -exec rm -rf {} + && find ./components ./packages -not -path '*/node_modules/*' -type f \\( -name '*.css' -o -name '*-css.js' \\) -delete", "preCommit": "node ./node_modules/@aurodesignsystem/auro-library/scripts/build/pre-commit.mjs", - "prepare": "husky install" + "prepare": "husky" }, "dependencies": { "@aurodesignsystem/auro-library": "^3.0.2" @@ -61,7 +61,7 @@ "core-js": "^3.38.1", "eslint": "^9.14.0", "eslint-plugin-jsdoc": "^50.5.0", - "husky": "^8.0.0", + "husky": "^9.1.7", "lodash": "^4.17.21", "markdown-magic": "^2.6.1", "nodemon": "^3.1.7",