Skip to content

Commit f53e0e9

Browse files
committed
Fix where setting DEVELOPMENT_MODE
1 parent ae98ec7 commit f53e0e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/build-dist.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ composer install --no-dev --classmap-authoritative --optimize-autoloader
2525
# Since the "highlight.php" directory name can trip up some systems, rename to "highlight-php".
2626
mv vendor/scrivo/highlight{.php,-php}
2727
find vendor/autoload.php vendor/composer -type f -print0 | xargs -0 sed -i "s:/highlight\.php/:/highlight-php/:g"
28+
sed -i "s/const DEVELOPMENT_MODE = true;.*/const DEVELOPMENT_MODE = false;/g" syntax-highlighting-code-block.php
2829

2930
# Build the JS.
3031
npm run build:js
@@ -40,7 +41,4 @@ if [[ $VERSION == *-* ]]; then
4041
sed -i "s/$VERSION_ESCAPED/$NEW_VERSION/g" syntax-highlighting-code-block.php
4142
echo "Detected non-stable version: $VERSION"
4243
echo "Creating build for version: $NEW_VERSION"
43-
44-
sed -i "s/const DEVELOPMENT_MODE = true;.*/const DEVELOPMENT_MODE = false;/g" syntax-highlighting-code-block.php
4544
fi
46-

0 commit comments

Comments
 (0)