Skip to content

Commit

Permalink
Merge pull request #352 from layer5io/350-remove-husky-from-scripts
Browse files Browse the repository at this point in the history
chore(repo): remove HUSKY=0 in the scripts
  • Loading branch information
nebula-aac authored Nov 17, 2023
2 parents 715183f + 6ecc9ca commit db6d052
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"packages/*"
],
"scripts": {
"prepare": "node -e \"try { require('husky').install() } catch (e) {if (e.code !== 'MODULE_NOT_FOUND') throw e}\"",
"commit:sign": "git cz -S",
"clean": "lerna clean -y",
"build-all": "lerna run build",
Expand Down
2 changes: 1 addition & 1 deletion scripts/create-multiple-git-tag.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

for dir in $(HUSKY=0 yarn lerna ls --json --all | jq -r '.[].location'); do
for dir in $(yarn lerna ls --json --all | jq -r '.[].location'); do
VERSION=$(node -e "console.log(require('$dir/package.json').version)")
NAME=$(node -e "console.log(require('$dir/package.json').name)")
TAG="$NAME@v$VERSION"
Expand Down
4 changes: 2 additions & 2 deletions scripts/version-prerelease-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# Example: version-prerelrease-packages.sh

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

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

# Stage changes to package.json files
for PACKAGE_NAME in $CHANGED_PACKAGES; do
Expand Down

0 comments on commit db6d052

Please sign in to comment.