From 8179d6e0d73df033ba2ace5923ec798ae15ed53c Mon Sep 17 00:00:00 2001 From: pietervdvn Date: Thu, 2 Jun 2022 03:04:11 +0200 Subject: [PATCH] Fix build --- .gitignore | 1 + package.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b7f7822f0..4b310f095 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,4 @@ Folder.DotSettings.user index_*.ts .~lock.* *.doctest.ts +service-worker.js diff --git a/package.json b/package.json index c36ddb0e3..5fd3e705f 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,9 @@ "generate:service-worker": "tsc service-worker.ts", "optimize-images": "cd assets/generated/ && find -name '*.png' -exec optipng '{}' \\; && echo 'PNGs are optimized'", "reset:layeroverview": "echo {\\\"layers\\\":[], \\\"themes\\\":[]} > ./assets/generated/known_layers_and_themes.json && echo {\\\"layers\\\": []} > ./assets/generated/known_layers.json", - "generate": "mkdir -p ./assets/generated && npm run reset:layeroverview && npm run generate:images && npm run generate:charging-stations && npm run generate:translations && npm run generate:licenses && npm run generate:layeroverview", + "generate": "mkdir -p ./assets/generated && npm run reset:layeroverview && npm run generate:images && npm run generate:charging-stations && npm run generate:translations && npm run generate:licenses && npm run generate:layeroverview && npm run generate:service-worker", "generate:charging-stations": "cd ./assets/layers/charging_station && ts-node csvToJson.ts && cd -", - "prepare-deploy": "./scripts/build.sh", + "prepare-deploy": "npm run generate:service-worker && ./scripts/build.sh", "gittag": "ts-node scripts/printVersion.ts | bash", "lint": "tslint --project . -c tslint.json '**.ts' ", "clean:tests": "(find . -type f -name \"*.doctest.ts\" | xargs rm)",