From 30c33c0ad36e1b382563560642cb79214fa304f6 Mon Sep 17 00:00:00 2001 From: MDLeom <43627182+curbengh@users.noreply.github.com> Date: Tue, 11 Jun 2024 11:19:32 +0000 Subject: [PATCH] docs: install zstd dependency explicitly using --force --include=optional flags are excessive This reverts commit e33fd0ed5d9e75ac542bd557934e37c28fdc1431 & 1b04f7c8f1c80d35e6906f748fc3e3d5925a840f. --- .github/workflows/tester.yml | 6 +++++- .npmrc | 3 +-- README.md | 12 ++++++++++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tester.yml b/.github/workflows/tester.yml index 8ccbce9..b8fc366 100644 --- a/.github/workflows/tester.yml +++ b/.github/workflows/tester.yml @@ -23,7 +23,11 @@ jobs: key: ${{ runner.os }}-npm-cache restore-keys: ${{ runner.os }}-npm-cache - name: Install Dependencies - run: npm install --include=optional + run: | + npm install + npm install @mongodb-js/zstd-linux-x64-musl \ + @mongodb-js/zstd-win32-x64-msvc \ + @mongodb-js/zstd-darwin-arm64 - name: Test run: npm run test env: diff --git a/.npmrc b/.npmrc index 557bc0b..77171bd 100644 --- a/.npmrc +++ b/.npmrc @@ -1,3 +1,2 @@ package-lock=false -optional=true -force=true +optional=false diff --git a/README.md b/README.md index 7d87f4f..732469c 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Yet Another Minifier for Hexo. Minify HTML, JS, CSS, SVG, XML and JSON. Compress ## Installation ```bash -$ npm install hexo-yam --save --include=optional --force +$ npm install --save hexo-yam ``` ## Options @@ -270,7 +270,15 @@ minify: ### Cannot find module '@mongodb-js/zstd-linux-x64-gnu' -`npm install --include=optional --force` +`npm install --save @mongodb-js/zstd-linux-x64-gnu` + +- @mongodb-js/zstd-darwin-arm64 (Apple Silicon) +- @mongodb-js/zstd-darwin-x64 (Intel Mac) +- @mongodb-js/zstd-linux-arm64-gnu +- @mongodb-js/zstd-linux-arm64-musl (Alpine) +- @mongodb-js/zstd-linux-x64-gnu +- @mongodb-js/zstd-linux-x64-musl (Alpine) +- @mongodb-js/zstd-win32-x64-msvc ## Globbing