From 2e2f1010f155b7aec39d0b80204ffac74126a6dd Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 16 Mar 2024 20:51:38 +0100 Subject: [PATCH] Turn off npm fund (#241) * disable npm fund message * disable npm fund message - rm global * disable npm fund message - runInWorkspace * fix args * fix args * fix args * fix workspaces --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 764602aad..dbc946299 100644 --- a/index.js +++ b/index.js @@ -197,6 +197,10 @@ const pkg = getPackageJson(); return; } + // disable npm fund message, because that would break the output + // -ws/iwr needed for workspaces https://github.com/npm/cli/issues/6099#issuecomment-1961995288 + await runInWorkspace('npm', ['config', 'set', 'fund', 'false', '-ws=false', '-iwr']); + // do it in the current checked out github branch (DETACHED HEAD) // important for further usage of the package.json version await runInWorkspace('npm', ['version', '--allow-same-version=true', '--git-tag-version=false', current]);