Skip to content

Commit a8f2956

Browse files
committed
ci: update post-checkout script and dep overrides
1 parent e3d3c96 commit a8f2956

File tree

3 files changed

+13
-38
lines changed

3 files changed

+13
-38
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

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

package.json

+2-6
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,7 @@
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"
6056
}
6157
}

0 commit comments

Comments
 (0)