Skip to content

Commit

Permalink
Turn off npm fund (#241)
Browse files Browse the repository at this point in the history
* disable npm fund message

* disable npm fund message - rm global

* disable npm fund message - runInWorkspace

* fix args

* fix args

* fix args

* fix workspaces
  • Loading branch information
phips28 authored Mar 16, 2024
1 parent 2422b20 commit 2e2f101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 2e2f101

Please sign in to comment.