From 2f00a1d403c26c7277e09ca88cead29a3d149db6 Mon Sep 17 00:00:00 2001 From: Christopher Berge Hove Date: Thu, 3 Oct 2024 13:56:28 +0200 Subject: [PATCH] fix: docker and pkg build form right directory --- client/apps/fusion-app-loader/package.json | 4 ++-- clientBackend.Dockerfile | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/client/apps/fusion-app-loader/package.json b/client/apps/fusion-app-loader/package.json index c59a94dd..2a6fc0b1 100644 --- a/client/apps/fusion-app-loader/package.json +++ b/client/apps/fusion-app-loader/package.json @@ -5,8 +5,8 @@ "type": "module", "main": "src/index.ts", "scripts": { - "prebuild": "rm -f ../../../client/packages/portal-client/src/assets/appLegacyLoader.js", - "build:appLoader": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../../../client/packages/portal-client/src/assets/appLegacyLoader.js", + "prebuild": "rm -f ../../packages/portal-client/src/assets/appLegacyLoader.js", + "build:appLoader": "fusion-framework-cli app build && mv ./dist/app-bundle.js ../../packages/portal-client/src/assets/appLegacyLoader.js", "build:resources": "tsc && vite build", "dev:appLoader": "fusion-framework-cli app dev -c vite.config.js", "docker": "cd .. && sh docker-script.sh app-react", diff --git a/clientBackend.Dockerfile b/clientBackend.Dockerfile index 4ac6d52f..4a9edc65 100644 --- a/clientBackend.Dockerfile +++ b/clientBackend.Dockerfile @@ -12,8 +12,7 @@ COPY ["/client", "."] RUN yarn install --frozen-lockfile # Build the leagasy app laoder - -RUN cd client/apps/legacy-app-loader && yarn install --frozen-lockfile && yarn build:appLoader +RUN cd apps/fusion-app-loader && yarn install --frozen-lockfile && yarn build:appLoader RUN npx yarn run build