Remove truncate number in favor of a boolean
MODIFY
packages/@romejs/cli-diagnostics/DiagnosticsPrinter.ts
packages/@romejs/cli-diagnostics/DiagnosticsPrinter.ts
@@ -457,7 +457,7 @@ export default class DiagnosticsPrinter extends Error {
outdatedAdvice.push({
type: 'list',
list: outdatedFilesArr.map(
- filename => `<fileref target="${filename}" />`,
+ filename => `<filelink target="${filename}" />`,
),
});
}

MODIFY
packages/@romejs/cli-diagnostics/printAdvice.ts
packages/@romejs/cli-diagnostics/printAdvice.ts
@@ -97,7 +97,7 @@ function printList(
return true;
} else {
opts.reporter.list(item.list, {
- truncate: opts.flags.verboseDiagnostics ? undefined : item.truncate,
+ truncate: opts.flags.verboseDiagnostics ? undefined : 20,
reverse: item.reverse,
ordered: item.ordered,
});
@@ -275,7 +275,7 @@ function printStacktrace(
},
{
ordered: true,
- truncate: item.truncate,
+ truncate: opts.flags.verboseDiagnostics ? undefined : 20,
},
);

Remove truncate number in favor of a boolean