From 398e3e6cba24a09c23e0902fcf487507f237a867 Mon Sep 17 00:00:00 2001 From: Ben Wilson Date: Wed, 2 Oct 2024 10:20:57 +0100 Subject: [PATCH] chore: :construction_worker: remove use of legacy peer dependencies --- .npmrc | 1 - bin/local-test-util | 2 - dockerfiles/Dockerfile.browser | 8 +- dockerfiles/Dockerfile.ci | 2 +- dockerfiles/Dockerfile.node | 2 +- ...act-native-android-builder-java-11-node-16 | 1 - ...ockerfile.react-native-cli-android-builder | 1 - package-lock.json | 90 +++++++++++++++---- scripts/react-native-cli-helper.js | 4 +- scripts/react-native-helper.js | 4 +- test/electron/features/support/app.js | 2 +- test/node/features/fixtures/cause/Dockerfile | 2 +- .../node/features/fixtures/connect/Dockerfile | 2 +- .../fixtures/contextualize/Dockerfile | 2 +- .../node/features/fixtures/express/Dockerfile | 2 +- .../node/features/fixtures/handled/Dockerfile | 2 +- test/node/features/fixtures/koa-1x/Dockerfile | 2 +- test/node/features/fixtures/koa/Dockerfile | 2 +- .../features/fixtures/project_root/Dockerfile | 2 +- test/node/features/fixtures/proxy/Dockerfile | 2 +- .../node/features/fixtures/restify/Dockerfile | 2 +- .../features/fixtures/sessions/Dockerfile | 2 +- .../fixtures/surrounding_code/Dockerfile | 2 +- .../features/fixtures/unhandled/Dockerfile | 2 +- .../node/features/fixtures/webpack/Dockerfile | 2 +- .../features/fixtures/Dockerfile | 2 +- 26 files changed, 100 insertions(+), 47 deletions(-) delete mode 100644 .npmrc diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 521a9f7c07..0000000000 --- a/.npmrc +++ /dev/null @@ -1 +0,0 @@ -legacy-peer-deps=true diff --git a/bin/local-test-util b/bin/local-test-util index c841037dbf..b316a91114 100755 --- a/bin/local-test-util +++ b/bin/local-test-util @@ -133,7 +133,6 @@ async function installNotifiers (notifier) { `install`, `--no-package-lock`, `--no-save`, - `--legacy-peer-deps` ].concat(notifier ? [ `../../../../bugsnag-${notifier}-${require(`../packages/${notifier}/package.json`).version}.tgz` @@ -156,7 +155,6 @@ 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`, diff --git a/dockerfiles/Dockerfile.browser b/dockerfiles/Dockerfile.browser index 95e2fa215f..12fb309c8b 100644 --- a/dockerfiles/Dockerfile.browser +++ b/dockerfiles/Dockerfile.browser @@ -11,7 +11,7 @@ ADD min_packages.tar . COPY bin ./bin COPY packages ./packages -RUN npm install --legacy-peer-deps +RUN npm install RUN npm run build RUN npm pack --verbose packages/js/ @@ -24,14 +24,14 @@ 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 \ +RUN npm install --no-package-lock --no-save \ ../../../../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 \ +RUN npm install --no-package-lock --no-save \ ../../../../../../bugsnag-plugin-angular-*.tgz \ ../../../../../../bugsnag-node-*.tgz \ ../../../../../../bugsnag-browser-*.tgz \ @@ -40,7 +40,7 @@ RUN npm install --no-package-lock --no-save --legacy-peer-deps \ # install the dependencies and build each fixture WORKDIR /app/test/browser/features/fixtures RUN find . -name package.json -type f -mindepth 2 -maxdepth 3 ! -path "./node_modules/*" | \ - xargs -I % bash -c 'cd `dirname %` && npm install --no-package-lock --legacy-peer-deps && npm run build' + xargs -I % bash -c 'cd `dirname %` && npm install --no-package-lock && npm run build' # 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 diff --git a/dockerfiles/Dockerfile.ci b/dockerfiles/Dockerfile.ci index edf853de1e..9548f64d5f 100644 --- a/dockerfiles/Dockerfile.ci +++ b/dockerfiles/Dockerfile.ci @@ -13,5 +13,5 @@ COPY scripts ./scripts COPY test ./test COPY packages ./packages -RUN npm install --unsafe-perm --legacy-peer-deps +RUN npm install --unsafe-perm RUN npm run build diff --git a/dockerfiles/Dockerfile.node b/dockerfiles/Dockerfile.node index c005a70e35..f2e40ae999 100644 --- a/dockerfiles/Dockerfile.node +++ b/dockerfiles/Dockerfile.node @@ -11,7 +11,7 @@ ADD min_packages.tar . COPY bin ./bin COPY packages ./packages -RUN npm install --legacy-peer-deps +RUN npm install RUN npm run build RUN npm pack --verbose packages/node/ diff --git a/dockerfiles/Dockerfile.react-native-android-builder-java-11-node-16 b/dockerfiles/Dockerfile.react-native-android-builder-java-11-node-16 index f70d532162..392cb65bec 100644 --- a/dockerfiles/Dockerfile.react-native-android-builder-java-11-node-16 +++ b/dockerfiles/Dockerfile.react-native-android-builder-java-11-node-16 @@ -14,7 +14,6 @@ ARG REG_NPM_EMAIL RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc RUN echo "always-auth=true" >> ~/.npmrc -RUN echo "legacy-peer-deps=true" >> ~/.npmrc # gradle / artifactory auth ARG MAVEN_REPO_URL diff --git a/dockerfiles/Dockerfile.react-native-cli-android-builder b/dockerfiles/Dockerfile.react-native-cli-android-builder index 9826d32c34..4a5348e165 100644 --- a/dockerfiles/Dockerfile.react-native-cli-android-builder +++ b/dockerfiles/Dockerfile.react-native-cli-android-builder @@ -22,7 +22,6 @@ RUN echo "registry=$REGISTRY_URL" >> ~/.npmrc RUN echo "_auth=$REG_BASIC_CREDENTIAL" >> ~/.npmrc RUN echo "email=$REG_NPM_EMAIL" >> ~/.npmrc RUN echo "always-auth=true" >> ~/.npmrc -RUN echo "legacy-peer-deps=true" >> ~/.npmrc # Now copy in all the files needed to build COPY .git .git diff --git a/package-lock.json b/package-lock.json index 1d265bb5cd..99d5b822ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -7515,6 +7515,21 @@ "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "dev": true }, + "node_modules/@lerna/create/node_modules/typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "optional": true, + "peer": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/@lerna/create/node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -26801,6 +26816,19 @@ "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "dev": true }, + "node_modules/lerna/node_modules/typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, "node_modules/lerna/node_modules/universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -46548,7 +46576,8 @@ "version": "1.5.3", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", - "dev": true + "dev": true, + "requires": {} }, "execa": { "version": "5.0.0", @@ -46914,6 +46943,14 @@ "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "dev": true }, + "typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true, + "optional": true, + "peer": true + }, "universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -47714,7 +47751,8 @@ "version": "1.0.4", "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz", "integrity": "sha512-mLUsMkgP7K/cnFEw07kWqXGF5LKrOkD+lhCrKvPHXWDywAwuDUeDwWBpc69XK3pNX0uKiVt8g5z96PJ6z9xCFA==", - "dev": true + "dev": true, + "requires": {} }, "@octokit/plugin-rest-endpoint-methods": { "version": "7.2.3", @@ -50332,19 +50370,22 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "dev": true + "dev": true, + "requires": {} }, "@webpack-cli/info": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", - "dev": true + "dev": true, + "requires": {} }, "@webpack-cli/serve": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", - "dev": true + "dev": true, + "requires": {} }, "@xmldom/xmldom": { "version": "0.8.10", @@ -50488,13 +50529,15 @@ "version": "1.9.5", "resolved": "https://registry.npmjs.org/acorn-import-attributes/-/acorn-import-attributes-1.9.5.tgz", "integrity": "sha512-n02Vykv5uA3eHGM/Z2dQrcD56kL8TyDb2p1+0P83PClMnC/nc+anbQRhIOWnSq4Ke/KvDPrY3C9hDtC/A3eHnQ==", - "dev": true + "dev": true, + "requires": {} }, "acorn-jsx": { "version": "5.1.0", "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.1.0.tgz", "integrity": "sha512-tMUqwBWfLFbJbizRmEcWSLw6HnFzfdJs2sOJEOwwtVPMoH/0Ay+E703oZz78VSXZiiDcZrQ5XKjPIUQixhmgVw==", - "dev": true + "dev": true, + "requires": {} }, "acorn-node": { "version": "1.5.2", @@ -50571,7 +50614,8 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true + "dev": true, + "requires": {} }, "anser": { "version": "1.4.10", @@ -51170,7 +51214,8 @@ "version": "7.0.0-bridge.0", "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-7.0.0-bridge.0.tgz", "integrity": "sha512-poPX9mZH/5CSanm50Q+1toVci6pv5KSRv/5TWCwtzQS5XEwn40BcCrgIeMFWP9CKKIniKXNxoIOnOq4VVlGXhg==", - "dev": true + "dev": true, + "requires": {} }, "babel-jest": { "version": "29.7.0", @@ -51609,7 +51654,8 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/babelify/-/babelify-10.0.0.tgz", "integrity": "sha512-X40FaxyH7t3X+JFAKvb1H9wooWKLRCi8pg3m8poqtdZaIng+bjzp9RvKQCvRjF9isHiPkXspbbXT/zwXLtwgwg==", - "dev": true + "dev": true, + "requires": {} }, "backo": { "version": "1.1.0", @@ -54720,7 +54766,8 @@ "version": "14.1.1", "resolved": "https://registry.npmjs.org/eslint-config-standard/-/eslint-config-standard-14.1.1.tgz", "integrity": "sha512-Z9B+VR+JIXRxz21udPTL9HpFMyoMUEeX1G251EQ6e05WD9aPVtVBn09XUmZ259wCMlCDmYDSZG62Hhm+ZTJcUg==", - "dev": true + "dev": true, + "requires": {} }, "eslint-config-standard-with-typescript": { "version": "13.0.0", @@ -55031,7 +55078,8 @@ "version": "4.1.0", "resolved": "https://registry.npmjs.org/eslint-plugin-standard/-/eslint-plugin-standard-4.1.0.tgz", "integrity": "sha512-ZL7+QRixjTR6/528YNGyDotyffm5OQst/sGxKDwGb9Uqs4In5Egi4+jbobhqJoyoCM6/7v/1A5fhQ7ScMtDjaQ==", - "dev": true + "dev": true, + "requires": {} }, "eslint-scope": { "version": "5.1.1", @@ -59909,7 +59957,8 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", - "dev": true + "dev": true, + "requires": {} }, "jest-regex-util": { "version": "26.0.0", @@ -61663,7 +61712,8 @@ "version": "1.5.3", "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.5.3.tgz", "integrity": "sha512-NHQtfOOW68WD8lgypbLA5oT+Bt0xXJhiYvoR6SmmNXZfpzOGXwdKWmcwG8N7PwVVWV3eF/68nmD9BaJSsTBhyQ==", - "dev": true + "dev": true, + "requires": {} }, "diff-sequences": { "version": "29.6.3", @@ -62084,6 +62134,12 @@ "integrity": "sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==", "dev": true }, + "typescript": { + "version": "5.6.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.6.2.tgz", + "integrity": "sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw==", + "dev": true + }, "universalify": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz", @@ -70126,7 +70182,8 @@ "version": "1.2.2", "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", - "dev": true + "dev": true, + "requires": {} }, "util": { "version": "0.10.4", @@ -71040,7 +71097,8 @@ "version": "7.3.1", "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz", "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA==", - "dev": true + "dev": true, + "requires": {} }, "xcode": { "version": "2.1.0", diff --git a/scripts/react-native-cli-helper.js b/scripts/react-native-cli-helper.js index 8da31188dd..f140806aa0 100644 --- a/scripts/react-native-cli-helper.js +++ b/scripts/react-native-cli-helper.js @@ -26,7 +26,7 @@ module.exports = { common.run('npm install', true) // Install and run the CLI - const installCommand = `npm install @bugsnag/react-native-cli@${version} --legacy-peer-deps` + const installCommand = `npm install @bugsnag/react-native-cli@${version}` common.run(installCommand, true) // Use Expect to run the init command interactively @@ -79,7 +79,7 @@ module.exports = { common.run('npm install', true) // Install and run the CLI - const installCommand = `npm install @bugsnag/react-native-cli@${version} --legacy-peer-deps` + const installCommand = `npm install @bugsnag/react-native-cli@${version}` common.run(installCommand, true) // Use Expect to run the init command interactively diff --git a/scripts/react-native-helper.js b/scripts/react-native-helper.js index ed6405bba3..0db4bf9f94 100644 --- a/scripts/react-native-helper.js +++ b/scripts/react-native-helper.js @@ -32,7 +32,7 @@ module.exports = { common.run(`npm install --registry ${registryUrl}`, true) // Install notifier - const command = `npm install @bugsnag/react-native@${version} --registry ${registryUrl} --legacy-peer-deps` + const command = `npm install @bugsnag/react-native@${version} --registry ${registryUrl}` common.run(command, true) // Install react-native-file-access @@ -98,7 +98,7 @@ module.exports = { // Install notifier console.log(`Installing notifier: ${version}`) - const command = `npm install @bugsnag/react-native@${version} --registry ${registryUrl} --legacy-peer-deps` + const command = `npm install @bugsnag/react-native@${version} --registry ${registryUrl}` common.run(command, true) // Install react-native-file-access diff --git a/test/electron/features/support/app.js b/test/electron/features/support/app.js index a6b1e87191..10d690c32b 100644 --- a/test/electron/features/support/app.js +++ b/test/electron/features/support/app.js @@ -4,7 +4,7 @@ const { spawn } = require('child_process') const defaultFixturePath = join(__dirname, '../../fixtures/app') const npmRunner = process.platform === 'win32' ? 'npm.cmd' : 'npm' -const installArgs = ['install', '--progress=false', '--no-audit', '--omit=optional', '--no-save', '--legacy-peer-deps'] +const installArgs = ['install', '--progress=false', '--no-audit', '--omit=optional', '--no-save'] const log = (msg, ...args) => console.log(` [TestApp] ${msg}`, ...args) class TestApp { diff --git a/test/node/features/fixtures/cause/Dockerfile b/test/node/features/fixtures/cause/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/cause/Dockerfile +++ b/test/node/features/fixtures/cause/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/connect/Dockerfile b/test/node/features/fixtures/connect/Dockerfile index 87ab58df11..6588bbffb3 100644 --- a/test/node/features/fixtures/connect/Dockerfile +++ b/test/node/features/fixtures/connect/Dockerfile @@ -8,7 +8,7 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-express*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-express*.tgz ENV NODE_ENV production CMD node scenarios/app diff --git a/test/node/features/fixtures/contextualize/Dockerfile b/test/node/features/fixtures/contextualize/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/contextualize/Dockerfile +++ b/test/node/features/fixtures/contextualize/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/express/Dockerfile b/test/node/features/fixtures/express/Dockerfile index 87ab58df11..6588bbffb3 100644 --- a/test/node/features/fixtures/express/Dockerfile +++ b/test/node/features/fixtures/express/Dockerfile @@ -8,7 +8,7 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-express*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-express*.tgz ENV NODE_ENV production CMD node scenarios/app diff --git a/test/node/features/fixtures/handled/Dockerfile b/test/node/features/fixtures/handled/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/handled/Dockerfile +++ b/test/node/features/fixtures/handled/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/koa-1x/Dockerfile b/test/node/features/fixtures/koa-1x/Dockerfile index 5bbc1c9faf..bf89686059 100644 --- a/test/node/features/fixtures/koa-1x/Dockerfile +++ b/test/node/features/fixtures/koa-1x/Dockerfile @@ -8,7 +8,7 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-koa*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-koa*.tgz ENV NODE_ENV production CMD node scenarios/app diff --git a/test/node/features/fixtures/koa/Dockerfile b/test/node/features/fixtures/koa/Dockerfile index 5bbc1c9faf..bf89686059 100644 --- a/test/node/features/fixtures/koa/Dockerfile +++ b/test/node/features/fixtures/koa/Dockerfile @@ -8,7 +8,7 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-koa*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-koa*.tgz ENV NODE_ENV production CMD node scenarios/app diff --git a/test/node/features/fixtures/project_root/Dockerfile b/test/node/features/fixtures/project_root/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/project_root/Dockerfile +++ b/test/node/features/fixtures/project_root/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/proxy/Dockerfile b/test/node/features/fixtures/proxy/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/proxy/Dockerfile +++ b/test/node/features/fixtures/proxy/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/restify/Dockerfile b/test/node/features/fixtures/restify/Dockerfile index 6a179c2709..73c4b81565 100644 --- a/test/node/features/fixtures/restify/Dockerfile +++ b/test/node/features/fixtures/restify/Dockerfile @@ -8,7 +8,7 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz bugsnag-plugin-restify*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz bugsnag-plugin-restify*.tgz ENV NODE_ENV production CMD node scenarios/app diff --git a/test/node/features/fixtures/sessions/Dockerfile b/test/node/features/fixtures/sessions/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/sessions/Dockerfile +++ b/test/node/features/fixtures/sessions/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/surrounding_code/Dockerfile b/test/node/features/fixtures/surrounding_code/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/surrounding_code/Dockerfile +++ b/test/node/features/fixtures/surrounding_code/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/unhandled/Dockerfile b/test/node/features/fixtures/unhandled/Dockerfile index 7a02012012..718d7275c7 100644 --- a/test/node/features/fixtures/unhandled/Dockerfile +++ b/test/node/features/fixtures/unhandled/Dockerfile @@ -8,4 +8,4 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz diff --git a/test/node/features/fixtures/webpack/Dockerfile b/test/node/features/fixtures/webpack/Dockerfile index cbe002f091..5215beed9a 100644 --- a/test/node/features/fixtures/webpack/Dockerfile +++ b/test/node/features/fixtures/webpack/Dockerfile @@ -8,5 +8,5 @@ RUN npm install COPY . ./ -RUN npm install --no-package-lock --no-save --legacy-peer-deps bugsnag-node*.tgz +RUN npm install --no-package-lock --no-save bugsnag-node*.tgz RUN npm run build diff --git a/test/react-native-cli/features/fixtures/Dockerfile b/test/react-native-cli/features/fixtures/Dockerfile index b0ee7ae240..33f8f473c9 100644 --- a/test/react-native-cli/features/fixtures/Dockerfile +++ b/test/react-native-cli/features/fixtures/Dockerfile @@ -9,6 +9,6 @@ COPY . /app WORKDIR /app -RUN npm i -g bugsnag-react-native-cli-*.tgz --legacy-peer-deps +RUN npm i -g bugsnag-react-native-cli-*.tgz ENTRYPOINT ["/bin/sh"]