Skip to content

Commit

Permalink
use --legacy-peer-deps to avoid auto install of peer deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Skinner committed Nov 6, 2023
1 parent 574ebb3 commit ac30f37
Show file tree
Hide file tree
Showing 16 changed files with 22 additions and 20 deletions.
4 changes: 3 additions & 1 deletion bin/local-test-util
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ async function installNotifiers (notifier) {
await ex(`npm`, [
`install`,
`--no-package-lock`,
`--no-save`
`--no-save`,
`--legacy-peer-deps`
].concat(notifier
? [
`../../../../bugsnag-${notifier}-${require(`../packages/${notifier}/package.json`).version}.tgz`
Expand All @@ -161,6 +162,7 @@ async function installNgNotifier (notifier) {
`install`,
`--no-package-lock`,
`--no-save`,
`--legacy-peer-deps`,
`../../../../../../bugsnag-browser-${require('../packages/browser/package.json').version}.tgz`,
`../../../../../../bugsnag-js-${require('../packages/js/package.json').version}.tgz`,
`../../../../../../bugsnag-node-${require('../packages/node/package.json').version}.tgz`,
Expand Down
10 changes: 5 additions & 5 deletions dockerfiles/Dockerfile.browser
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ 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 ../../../../bugsnag-browser-*.tgz
RUN npm install --no-package-lock --no-save ../../../../bugsnag-plugin-react-*.tgz
RUN npm install --no-package-lock --no-save ../../../../bugsnag-plugin-vue-*.tgz
RUN npm install --no-package-lock --no-save ../../../../bugsnag-web-worker-*.tgz
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
WORKDIR plugin_angular/ng
RUN npm install --no-package-lock --no-save \
RUN npm install --no-package-lock --no-save --legacy-peer-deps \
../../../../../../bugsnag-plugin-angular-*.tgz \
../../../../../../bugsnag-node-*.tgz \
../../../../../../bugsnag-browser-*.tgz \
Expand Down
2 changes: 1 addition & 1 deletion test/node/features/fixtures/cause/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/connect/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-express*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-express*.tgz

ENV NODE_ENV production
CMD node scenarios/app
2 changes: 1 addition & 1 deletion test/node/features/fixtures/contextualize/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/express/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-express*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-express*.tgz

ENV NODE_ENV production
CMD node scenarios/app
2 changes: 1 addition & 1 deletion test/node/features/fixtures/handled/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/koa-1x/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-koa*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-koa*.tgz

ENV NODE_ENV production
CMD node scenarios/app
2 changes: 1 addition & 1 deletion test/node/features/fixtures/koa/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-koa*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-koa*.tgz

ENV NODE_ENV production
CMD node scenarios/app
2 changes: 1 addition & 1 deletion test/node/features/fixtures/project_root/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/restify/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-restify*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-restify*.tgz

ENV NODE_ENV production
CMD node scenarios/app
2 changes: 1 addition & 1 deletion test/node/features/fixtures/sessions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/surrounding_code/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/unhandled/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
2 changes: 1 addition & 1 deletion test/node/features/fixtures/webpack/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ RUN npm install

COPY . ./

RUN npm install --no-package-lock --no-save bugsnag-node*.tgz
RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz
RUN npm run build

0 comments on commit ac30f37

Please sign in to comment.