mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 23:37:19 +01:00
Consolidates 25 commits with all latest features: timeline improvements, mobile optimizations, multi-wallet system, enhanced profiles, code quality cleanup
29 lines
862 B
JavaScript
29 lines
862 B
JavaScript
#!/usr/bin/env node
|
|
const { spawn } = require('child_process');
|
|
|
|
const tsc = spawn('npm', ['run', '-s', 'type-check'], { stdio: ['ignore', 'pipe', 'pipe'] });
|
|
|
|
let out = '';
|
|
let err = '';
|
|
|
|
tsc.stdout.on('data', (d) => (out += d.toString()));
|
|
tsc.stderr.on('data', (d) => (err += d.toString()));
|
|
|
|
tsc.on('close', (code) => {
|
|
const text = out + '\n' + err;
|
|
const lines = text.split(/\r?\n/).filter(Boolean);
|
|
const errorLines = lines.filter((l) => /error TS\d+/.test(l));
|
|
const count = errorLines.length;
|
|
|
|
console.log('TypeScript error report (non-blocking)');
|
|
console.log('--------------------------------------');
|
|
console.log(`Total TS errors: ${count}`);
|
|
if (count > 0) {
|
|
console.log('Sample (first 10):');
|
|
errorLines.slice(0, 10).forEach((l) => console.log(l));
|
|
}
|
|
// Always exit 0 to avoid failing CI for now
|
|
process.exit(0);
|
|
});
|
|
|