Commit 17547157 authored by Jeremy Morrell's avatar Jeremy Morrell Committed by Jeremy Morrell

Test for yarn build as well

parent 3d9ee07f
......@@ -54,9 +54,12 @@ log_build_scripts() {
if [ -n "$postinstall" ]; then
mcount "scripts.postinstall"
if [ "$postinstall" == "npm run build" ]; then
if [ "$postinstall" == "npm run build" ] ||
[ "$postinstall" == "yarn run build" ] ||
[ "$postinstall" == "yarn build" ]; then
mcount "scripts.postinstall-is-npm-build"
fi
fi
if [ -n "$heroku_prebuild" ]; then
......@@ -66,7 +69,9 @@ log_build_scripts() {
if [ -n "$heroku_postbuild" ]; then
mcount "scripts.heroku-postbuild"
if [ "$heroku_postbuild" == "npm run build" ]; then
if [ "$heroku_postbuild" == "npm run build" ] ||
[ "$heroku_postbuild" == "yarn run build" ] ||
[ "$heroku_postbuild" == "yarn build" ]; then
mcount "scripts.heroku-postbuild-is-npm-build"
fi
fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment