Skip to content

Commit 1eac042

Browse files
committed
ci: update post-checkout hook and overrides
1 parent e3d3c96 commit 1eac042

File tree

3 files changed

+21
-56
lines changed

3 files changed

+21
-56
lines changed

.husky/post-checkout

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
# shellcheck disable=SC2148
22

3-
[ "$3" -eq 0 ] && exit 0
3+
set -euo pipefail
44

5-
export NVM_DIR="$HOME/.nvm"
6-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
5+
main() {
6+
[ "$3" -eq 0 ] && exit 0
77

8-
nvm i
9-
npm i
8+
export NVM_DIR="$HOME/.nvm"
9+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
10+
nvm i
11+
12+
npm i
13+
}
14+
15+
main "$@"

package-lock.json

+7-45
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-6
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,8 @@
5151
]
5252
},
5353
"overrides": {
54-
"svgo": {
55-
"nth-check": ">=2.0.2"
56-
},
57-
"react-scripts": {
58-
"postcss": ">=8.4.31"
59-
}
54+
"nth-check": "^2.0.1",
55+
"postcss": "^8.4.31",
56+
"resolve-url-loader": "^5.0.0"
6057
}
6158
}

0 commit comments

Comments
 (0)