From 0f6f65045dd31a5df2031a9ad5bd20e1801f1030 Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Sat, 3 Sep 2022 21:36:47 +0530 Subject: [PATCH] Add npmrc so that newer node/npm version works (#806) * Add .npmrc so that it works with newer npm * Remove engine upper limit as it works with npmrc * Lockfile maintainace, created new mapping with npm install * Add npmrc so Docker doesnt fail on new npm version * Revert 8a1946d55833daee6b335189733f02251de4c181 will set renovate --- .npmrc | 1 + Dockerfile | 2 +- package-lock.json | 4 ++-- package.json | 4 ++-- 4 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 .npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..e9ee3cb --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +legacy-peer-deps=true \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index ea1b96f..987c4c4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:17.9.0-alpine3.15 as builder WORKDIR /src -COPY package.json package-lock.json /src/ +COPY .npmrc package.json package-lock.json /src/ RUN npm ci COPY . /src/ RUN npm run build diff --git a/package-lock.json b/package-lock.json index 6fd5ff8..46015fd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -77,8 +77,8 @@ "webpack-merge": "^5.7.3" }, "engines": { - "node": ">=14.15.0 <=17.9.0", - "npm": ">=6.14.8 <=8.5.5" + "node": ">=14.15.0", + "npm": ">=6.14.8" } }, "node_modules/@ampproject/remapping": { diff --git a/package.json b/package.json index cfa480f..2ec2a79 100644 --- a/package.json +++ b/package.json @@ -4,8 +4,8 @@ "description": "Yet another matrix client", "main": "index.js", "engines": { - "npm": ">=6.14.8 <=8.5.5", - "node": ">=14.15.0 <=17.9.0" + "npm": ">=6.14.8", + "node": ">=14.15.0" }, "scripts": { "start": "webpack serve --config ./webpack.dev.js --open",