Skip to content

Commit

Permalink
Merge remote-tracking branch 'bp/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed May 17, 2024
2 parents fd7eecb + 7f20a51 commit cbf0915
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .githooks/set-scripts-executable-now.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
set +e

dirs=".scripts .github src bin"

for dir in $dirs; do
find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II chmod a+x I
done

set -e

4 changes: 1 addition & 3 deletions .githooks/set-scripts-executable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ set +e
dirs=".scripts .github"

for dir in $dirs; do
find $dir -type f -iname "*.sh" -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
find $dir -type f -iname "*.mjs" -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
find $dir -type f -iname "*.mts" -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
find $dir -type f \( -iname "*.sh" -o -iname "*.mjs" -o -iname "*.mts" \) -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
done

find .githooks -type f -print0 | xargs -0II git update-index --ignore-missing --chmod=+x I
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@types/mocha": "10",
"@types/node": "20",
"@waiting/eslint-config": "^10.25.1",
"@waiting/shared-core": "^23.8.0",
"@waiting/shared-core": "^23.9.0",
"@waiting/shared-types": "^23.6.0",
"autocannon": "7",
"coveralls": "3",
Expand All @@ -23,7 +23,7 @@
"mocha": "10",
"mocha-lcov-reporter": "1",
"mwtsc": "^1.8.1",
"nx": "18",
"nx": "19",
"swagger-ui-dist": "^5.17.6",
"ts-node": "^10.9.2",
"tsc-alias": "^1.8.8",
Expand Down

0 comments on commit cbf0915

Please sign in to comment.