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:
GNQG
2023-02-02 10:48:50 +09:00
committed by GitHub
parent 530db4ac52
commit 93d34632fe
2 changed files with 12 additions and 5 deletions

View 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).

View File

@@ -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