Skip to content

Commit

Permalink
Merge pull request #54 from shelfio/feature/update-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
slavik-chapelskyi authored Apr 22, 2024
2 parents 52d13a3 + 7efab54 commit c624a80
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 47 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ version: 2.1
parameters:
node_version:
type: string
default: '18.18.0'
default: '20.12.2'

commands:
install_deps:
Expand Down
31 changes: 0 additions & 31 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -1,31 +0,0 @@
#!/bin/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

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

export readonly husky_skip_init=1
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

exit $exitCode
fi
5 changes: 1 addition & 4 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
yarn lint-staged --shell "/bin/sh" --verbose

yarn lint-staged
21 changes: 11 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"lint": "yarn lint:ci --fix",
"lint:ci": "eslint . --ext .js,.ts,.json",
"prepack": "yarn build",
"prepare": "husky",
"size": "size-limit",
"test": "NODE_OPTIONS=--experimental-vm-modules jest",
"type-check": "tsc --noEmit"
Expand All @@ -44,23 +45,23 @@
"preset": "ts-jest/presets/default-esm"
},
"devDependencies": {
"@shelf/eslint-config": "3.11.2",
"@shelf/eslint-config": "3.15.1",
"@shelf/prettier-config": "1.0.0",
"@shelf/tsconfig": "0.1.0",
"@size-limit/preset-small-lib": "10.0.1",
"@types/jest": "29.5.7",
"@size-limit/preset-small-lib": "11.1.2",
"@types/jest": "29.5.12",
"benny": "3.7.1",
"eslint": "8.52.0",
"husky": "8.0.3",
"husky": "9.0.11",
"jest": "29.7.0",
"lint-staged": "15.0.2",
"prettier": "3.0.3",
"size-limit": "10.0.1",
"ts-jest": "29.1.1",
"typescript": "5.2.2"
"lint-staged": "15.2.2",
"prettier": "3.2.5",
"size-limit": "11.1.2",
"ts-jest": "29.1.2",
"typescript": "5.4.5"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": ["github>shelfio/renovate-config-public"],
"labels": ["frontend", "dependencies"],
"labels": ["frontend"],
"ignoreDeps": ["cimg/node"]
}

0 comments on commit c624a80

Please sign in to comment.