Skip to content

Commit

Permalink
perf: testing out latest husky to fix release #112
Browse files Browse the repository at this point in the history
  • Loading branch information
rmenner committed Dec 16, 2024
1 parent b279345 commit d34fded
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/blueprint.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
---

Expand Down
39 changes: 6 additions & 33 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -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
"
3 changes: 1 addition & 2 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
# .husky/pre-commit

npx --no-install commitlint --edit "$1"
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/npm-run-all preCommit lint postinstall
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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",
Expand Down

0 comments on commit d34fded

Please sign in to comment.