From f8a0a854f005ff01ed109f0840de24b8b2f6fff9 Mon Sep 17 00:00:00 2001 From: Torben Brenner Date: Thu, 16 May 2024 12:13:37 +0200 Subject: [PATCH] fix: use profile development for develop builds --- Dockerfile | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4e0c61e..6358a04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,9 @@ RUN npm install && npm link @samply/lens-core @samply/lens-components COPY ./angular.json ./tsconfig.json ./tsconfig.app.json ./tsconfig.spec.json ./ COPY ./src ./src RUN if [ "${PRODUCTION}" = true ]; then \ - npm run build:prod ${TARGET_PROJECT}; \ + npm run build:prod; \ else \ - npm run build ${TARGET_PROJECT}; \ + npm run build; \ fi; FROM nginx:stable-alpine diff --git a/package.json b/package.json index 14f2073..bba4cc9 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "format": "prettier --write \"**/*.{js,ts,d.ts}\"", "format:check": "prettier --check \"**/*.{js,ts,d.ts}\"", "security:check": "npm audit --production --audit-level high", - "build": "ng build", + "build": "ng build --configuration development", "build:prod": "ng build --configuration production", "watch": "ng build --watch --configuration development", "test": "ng test",