feat: don't auto-wrap footer text

This commit is contained in:
2024-01-29 00:08:52 +02:00
committed by Chen Asraf
parent 359d802c82
commit 6e947a4340
4 changed files with 191 additions and 187 deletions

View File

@@ -28,9 +28,10 @@
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@types/jest": "^29.5.11",
"@types/node": "^20.11.5",
"@types/node": "^20.11.10",
"gh-pages": "^6.1.1",
"jest": "^29.7.0",
"prettier": "^3.2.4",
"semantic-release": "^23.0.0",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",

370
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -313,7 +313,7 @@ export class HelpGenerator {
]),
examples.length &&
indent(['', format('Examples:', this.config.subtitleStyle), '', indent(examples)]),
footerText.length && ['', _wrap(format(footerText, this.config.descriptionStyle))],
footerText.length && ['', format(footerText, this.config.descriptionStyle)],
) + '\n'
)
}

View File

@@ -11,7 +11,8 @@ export function _setOrPush<T>(
}
return newValue as T
}
type Parseable = string | number | boolean | null | undefined | Record<string, unknown>
/** A value that can be stringified using one of the util functions. */
export type Parseable = string | number | boolean | null | undefined | Record<string, unknown>
/** A type that makes all properties of an object required, recursively. */
export type DeepRequired<T> = {