mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-04 14:35:29 +01:00
16 lines
460 B
JavaScript
16 lines
460 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import { execSync } from 'child_process';
|
|
|
|
console.log('Cleaning build artifacts and src directory...');
|
|
|
|
try {
|
|
// Use yarn global rimraf to clean directories
|
|
execSync('yarn g:rimraf ./build', { stdio: 'inherit' });
|
|
execSync('yarn g:rimraf ./src/win_hello.node', { stdio: 'inherit' });
|
|
console.log('Clean completed successfully');
|
|
} catch (error) {
|
|
console.error('Clean failed:', error.message);
|
|
process.exit(1);
|
|
}
|