包文件→ .shtukbase/packages/design-components/lib/report.ts
lib/report.ts
5 行, 236 B.
文件按包中的原样显示:代码及其注释不做翻译。
- // The shape of every check of this package: findings one per line, exit code 1 when there are any.
- export function report(out: string[]): void {
- if (out.length) console.log(out.join('\n'));
- process.exitCode = out.length ? 1 : 0;
- }