diff options
author | 2022-11-25 05:31:46 +0530 | |
---|---|---|
committer | 2022-11-25 00:01:46 +0000 | |
commit | c04b71b2c79bdc5b1612ef0e98f351d1193bdec9 (patch) | |
tree | b46106d37f6d4ecc2bb366fcf5418ac3f478fe42 /.husky | |
parent | Pull in new version of 'recipes' submodule (diff) | |
download | ferdium-app-c04b71b2c79bdc5b1612ef0e98f351d1193bdec9.tar.gz ferdium-app-c04b71b2c79bdc5b1612ef0e98f351d1193bdec9.tar.zst ferdium-app-c04b71b2c79bdc5b1612ef0e98f351d1193bdec9.zip |
Switch npm to pnpm (#714)
Diffstat (limited to '.husky')
-rwxr-xr-x | .husky/commit-msg | 2 | ||||
-rwxr-xr-x | .husky/pre-commit | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/.husky/commit-msg b/.husky/commit-msg index 6ce506d30..acf27d9e0 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg | |||
@@ -2,7 +2,7 @@ | |||
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 | 8 | ||
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 |