From 53a86d43e91c725dcfeb44c7ae34e71e01d660d2 Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 6 Jun 2025 12:19:35 +0200 Subject: [PATCH] frontend: rename build script from build:prod to build; update prepare script accordingly --- frontend/package.json | 2 +- prepare.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 5f8069c..ec4128d 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -5,7 +5,7 @@ "scripts": { "start:dev": "npx ng serve --configuration development --port=5080 --host=0.0.0.0", "build:dev": "npx ng build --configuration development --watch", - "build:prod": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func", + "build": "func() { ./node_modules/@angular/cli/bin/ng.js build --configuration production --base-href=\"${1:-/}\"; }; func", "typings:sync": "npm run sync-ce --prefix ../typings", "sync:backend": "npx ng build --configuration production --output-path ../backend/dist/public/", "e2e:run-all": "npx mocha --recursive --timeout 30000 ./tests/e2e/**/*.test.ts", diff --git a/prepare.sh b/prepare.sh index 85462b0..b5c45d2 100755 --- a/prepare.sh +++ b/prepare.sh @@ -94,7 +94,7 @@ if [ "$BUILD_FRONTEND" = true ]; then echo -e "${GREEN}Building frontend...${NC}" cd frontend npm install - npm run build:prod + npm run build cd .. fi