mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
15 lines
435 B
JavaScript
15 lines
435 B
JavaScript
import { spawn } from 'node:child_process';
|
|
|
|
console.log("Running lint:tokens to reproduce the issue...");
|
|
const child = spawn('npm', ['run', 'lint:tokens'], { stdio: 'inherit', shell: true });
|
|
|
|
child.on('exit', (code) => {
|
|
if (code !== 0) {
|
|
console.log("\nReproduced: Lint check failed as expected.");
|
|
process.exit(code);
|
|
} else {
|
|
console.log("\nFailed to reproduce: Lint check passed.");
|
|
process.exit(0);
|
|
}
|
|
});
|