From 43bf925cf93878606a49c630b6f8bbd0c7c9dc58 Mon Sep 17 00:00:00 2001 From: Dominik Nakamura Date: Sun, 6 Nov 2022 01:41:01 +0900 Subject: [PATCH] Set `legacy-peer-deps` in .npmrc (#537) --- .github/workflows/build_and_publish.yml | 6 +++--- .github/workflows/pullrequest.yml | 4 ++-- .npmrc | 1 + BUILD.md | 4 ++-- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 03f1600a..eb2f4167 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -75,7 +75,7 @@ jobs: name: version_info path: './src/version_info.json' - - run: npm install --legacy-peer-deps + - run: npm install - run: npm run build:prepare - run: npm run build:all @@ -176,7 +176,7 @@ jobs: with: node-version: 16 - - run: npm install --legacy-peer-deps + - run: npm install - name: Download Angular Output from build uses: actions/download-artifact@v2 @@ -226,7 +226,7 @@ jobs: with: node-version: 16 - - run: npm install --legacy-peer-deps + - run: npm install - name: Download Angular Output from build uses: actions/download-artifact@v2 diff --git a/.github/workflows/pullrequest.yml b/.github/workflows/pullrequest.yml index a5ab4132..049a55c9 100644 --- a/.github/workflows/pullrequest.yml +++ b/.github/workflows/pullrequest.yml @@ -27,7 +27,7 @@ jobs: uses: actions/setup-node@v1 with: node-version: 16 - - run: npm install --legacy-peer-deps + - run: npm install if: steps.cache-package.outputs.cache-hit != 'true' - name: Run Affected Lint shell: bash @@ -61,7 +61,7 @@ jobs: with: node-version: 16 - - run: npm install --legacy-peer-deps + - run: npm install if: steps.cache-package.outputs.cache-hit != 'true' - run: npm run build:prepare - run: npm run build:pkg -- -o release/out/memebox diff --git a/.npmrc b/.npmrc index f5357d5e..8c18d832 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ +legacy-peer-deps=true save=true save-exact=true diff --git a/BUILD.md b/BUILD.md index fded814a..71bc0b94 100644 --- a/BUILD.md +++ b/BUILD.md @@ -28,7 +28,7 @@ cd meme-box If you want to build the _headless_ CLI variant use the following commands (for Windows in this example): ```sh -npm install --legacy-peer-deps +npm install npm run build:prepare npm run build:windows # or build:macos / build:linux ``` @@ -42,7 +42,7 @@ Afterwards, the standalone binary can be found in the `release/out/` folder. If you want to build the complete Electron application, which includes the user interface bundled as a regular application, execute the following commands: ```sh -npm install --legacy-peer-deps +npm install npm run electron:build ```