fix: mention CLI flag in git checks hint

PR #2904
Co-authored-by: Zoltan Kochan <z@kochan.io>
This commit is contained in:
Misha Kaletsky
2020-09-30 17:47:38 -04:00
committed by GitHub
parent 95ad9cafa2
commit 5351791f68
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@pnpm/plugin-commands-publishing": patch
---
Added more info to the Git check error hint.

View File

@@ -83,7 +83,7 @@ export function help () {
})
}
const GIT_CHECKS_HINT = 'If you want to disable Git checks on publish, set the "git-checks" setting to "false".'
const GIT_CHECKS_HINT = 'If you want to disable Git checks on publish, set the "git-checks" setting to "false", or run again with "--no-git-checks".'
export async function handler (
opts: Omit<PublishRecursiveOpts, 'workspaceDir'> & {