From e08027fe350faccb622d7997d22dd191912a2e75 Mon Sep 17 00:00:00 2001 From: Yousif Ahmed Date: Mon, 30 Sep 2024 13:14:08 +0100 Subject: [PATCH] ci(browser): fix package install command --- dockerfiles/Dockerfile.browser | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/dockerfiles/Dockerfile.browser b/dockerfiles/Dockerfile.browser index 521686840..95e2fa215 100644 --- a/dockerfiles/Dockerfile.browser +++ b/dockerfiles/Dockerfile.browser @@ -10,7 +10,6 @@ COPY babel.config.js lerna.json .eslintignore .eslintrc.js jest.config.js tsconf ADD min_packages.tar . COPY bin ./bin COPY packages ./packages -RUN find ./packages -print RUN npm install --legacy-peer-deps RUN npm run build @@ -24,13 +23,13 @@ RUN npm pack --verbose packages/plugin-vue/ RUN npm pack --verbose packages/web-worker/ COPY test/browser/features test/browser/features - WORKDIR /app/test/browser/features/fixtures -RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-browser-*.tgz -RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-plugin-react-*.tgz -RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-plugin-vue-*.tgz -RUN npm install --no-package-lock --no-save --legacy-peer-deps ../../../../bugsnag-web-worker-*.tgz -RUN find ./node_modules -print +RUN npm install --no-package-lock --no-save --legacy-peer-deps \ +../../../../bugsnag-browser-*.tgz \ +../../../../bugsnag-plugin-react-*.tgz \ +../../../../bugsnag-plugin-vue-*.tgz \ +../../../../bugsnag-web-worker-*.tgz + WORKDIR plugin_angular/ng RUN npm install --no-package-lock --no-save --legacy-peer-deps \ ../../../../../../bugsnag-plugin-angular-*.tgz \ @@ -45,7 +44,7 @@ RUN find . -name package.json -type f -mindepth 2 -maxdepth 3 ! -path "./node_mo # once the fixtures are built we no longer need node_modules and # it makes the COPY later on much faster if we don't have them -# RUN rm -fr **/*/node_modules/ +RUN rm -fr **/*/node_modules/ # The maze-runner browser tests (W3C protocol) FROM 855461928731.dkr.ecr.us-west-1.amazonaws.com/maze-runner-releases:latest-v9-cli as browser-maze-runner