Fix npm run build
authorChocobozzz <me@florianbigard.com>
Thu, 11 Jun 2020 07:29:33 +0000 (09:29 +0200)
committerChocobozzz <me@florianbigard.com>
Thu, 11 Jun 2020 07:29:33 +0000 (09:29 +0200)
scripts/build/client.sh
scripts/release.sh

index 31b55dbf5d9177b04a300d966e5d926b63c77933..a86404c6f04fe9b53ed167164d975ce2a46f13b8 100755 (executable)
@@ -148,10 +148,6 @@ if [ -z ${1+x} ] || [ "$1" != "--light" ]; then
     done
 fi
 
-if [ "$1" != "--analyze" ]; then
-  rm "./dist/en-US/stats-es2015.json"
-fi
-
 cd ../ && npm run build:embed && cd client/
 
 # Copy runtime locales
index cc0a586e94ea790b89957aa9cdd3f6336e24fe38..665f690bbddd18a57076041eafc3c7873307c2fe 100755 (executable)
@@ -66,7 +66,7 @@ git commit package.json client/package.json ./support/doc/api/openapi.yaml -m "B
 git tag -s -a "$version" -m "$version"
 
 npm run build
-rm -f "./client/dist/en_US/stats.json"
+rm -f "./client/dist/en-US/stats.json"
 rm -f "./client/dist/embed-stats.json"
 
 # Creating the archives