Skip to content

Commit db6d052

Browse files
authored
Merge pull request #352 from layer5io/350-remove-husky-from-scripts
chore(repo): remove HUSKY=0 in the scripts
2 parents 715183f + 6ecc9ca commit db6d052

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"packages/*"
99
],
1010
"scripts": {
11+
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"",
1112
"commit:sign": "git cz -S",
1213
"clean": "lerna clean -y",
1314
"build-all": "lerna run build",

scripts/create-multiple-git-tag.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
for dir in $(HUSKY=0 yarn lerna ls --json --all | jq -r '.[].location'); do
3+
for dir in $(yarn lerna ls --json --all | jq -r '.[].location'); do
44
VERSION=$(node -e "console.log(require('$dir/package.json').version)")
55
NAME=$(node -e "console.log(require('$dir/package.json').name)")
66
TAG="$NAME@v$VERSION"

scripts/version-prerelease-packages.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# Example: version-prerelrease-packages.sh
55

66
# Get the list of changed packages using Lerna
7-
CHANGED_PACKAGES=$(HUSKY=0 yarn lerna changed --json | jq -r '.[].name')
7+
CHANGED_PACKAGES=$(yarn lerna changed --json | jq -r '.[].name')
88

99
if [ -n "$CHANGED_PACKAGES" ]; then
1010
echo "Changed packages detected: $CHANGED_PACKAGES"
11-
HUSKY=0 yarn lerna version --no-private --conventional-commits --conventional-prerelease --include-merged-tags --no-git-tag-version --yes
11+
yarn lerna version --no-private --conventional-commits --conventional-prerelease --include-merged-tags --no-git-tag-version --yes
1212

1313
# Stage changes to package.json files
1414
for PACKAGE_NAME in $CHANGED_PACKAGES; do

0 commit comments

Comments
 (0)