diff options
author | Vijay Aravamudhan <vraravam@users.noreply.github.com> | 2022-10-26 07:15:33 +0530 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-10-26 07:15:34 +0530 |
commit | bc980882d05b7eec4135e4a286f6843fa6cc1bd0 (patch) | |
tree | af3c5d2d8ad417c05e5d579018f94d13667b3ed2 /.husky/pre-commit | |
parent | Upgrade 'nodejs' to '16.18.0' (#705) (diff) | |
download | ferdium-app-bc980882d05b7eec4135e4a286f6843fa6cc1bd0.tar.gz ferdium-app-bc980882d05b7eec4135e4a286f6843fa6cc1bd0.tar.zst ferdium-app-bc980882d05b7eec4135e4a286f6843fa6cc1bd0.zip |
Switch from 'npm' to 'pnpm' (#704)
Co-authored-by: Markus Hatvan <markus_hatvan@aon.at>
Co-authored-by: Nathanaël Houn <contact@nathanaelhoun.fr>
Co-authored-by: Balaji Vijayakumar <kuttibalaji.v6@gmail.com>
Co-authored-by: André Oliveira <oliveira.andrerodrigues95@gmail.com>
Diffstat (limited to '.husky/pre-commit')
-rwxr-xr-x | .husky/pre-commit | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.husky/pre-commit b/.husky/pre-commit index 4936b8e97..7595a1196 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit | |||
@@ -2,8 +2,9 @@ | |||
2 | 2 | ||
3 | FILE_NAME="$(dirname "$0")/_/husky.sh" | 3 | FILE_NAME="$(dirname "$0")/_/husky.sh" |
4 | 4 | ||
5 | # Conditionally invoke so as to avoid running npm commands if this is a clean checkout (ie before installing node modules) | 5 | # Conditionally invoke so as to avoid running pnpm commands if this is a clean checkout (ie before installing node modules) |
6 | if [ -f $FILE_NAME ]; then | 6 | if [ -f $FILE_NAME ]; then |
7 | . $FILE_NAME | 7 | . $FILE_NAME |
8 | npm run prepare-code | 8 | pnpm prepare-code |
9 | pnpm test | ||
9 | fi | 10 | fi |