Skip to content

Commit 996c7a0

Browse files
chore(bower/publish): run local precommit script if available
Closes angular#11164
1 parent e81b2f7 commit 996c7a0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

scripts/bower/publish.sh

+15
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,21 @@ function prepare {
6161
cp $BUILD_DIR/angular-csp.css $TMP_DIR/bower-angular
6262

6363

64+
#
65+
# Run local precommit script if there is one
66+
#
67+
for repo in "${REPOS[@]}"
68+
do
69+
if [ -f $TMP_DIR/bower-$repo/precommit.sh ]
70+
then
71+
echo "-- Running precommit.sh script for bower-$repo"
72+
cd $TMP_DIR/bower-$repo
73+
$TMP_DIR/bower-$repo/precommit.sh
74+
cd $SCRIPT_DIR
75+
fi
76+
done
77+
78+
6479
#
6580
# update bower.json
6681
# tag each repo

0 commit comments

Comments
 (0)