mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-26 07:27:20 -04:00
fix(plugin-commands-audit): AUDIT_TABLE_OPTIONS not to overwrite TABLE_OPTIONS (#6019)
* fix(plugin-commands-audit): fix AUDIT_TABLE_OPTIONS not to overwrite TABLE_OPTIONS * docs: update changesets
This commit is contained in:
5
.changeset/tidy-peas-grin.md
Normal file
5
.changeset/tidy-peas-grin.md
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
"@pnpm/plugin-commands-audit": patch
|
||||
---
|
||||
|
||||
Fix AUDIT_TABLE_OPTIONS not to overwrite TABLE_OPTIONS, which prevents breaking other table outputs such like `pnpm outdated` [#6017](https://github.com/pnpm/pnpm/issues/6017).
|
||||
@@ -29,11 +29,13 @@ const AUDIT_COLOR = {
|
||||
critical: chalk.bold.red,
|
||||
}
|
||||
|
||||
const AUDIT_TABLE_OPTIONS = TABLE_OPTIONS
|
||||
AUDIT_TABLE_OPTIONS.columns = {
|
||||
1: {
|
||||
width: 54, // = table width of 80
|
||||
wrapWord: true,
|
||||
const AUDIT_TABLE_OPTIONS = {
|
||||
...TABLE_OPTIONS,
|
||||
columns: {
|
||||
1: {
|
||||
width: 54, // = table width of 80
|
||||
wrapWord: true,
|
||||
},
|
||||
},
|
||||
}
|
||||
// eslint-enable
|
||||
|
||||
Reference in New Issue
Block a user