blob: 049fdc0434b1c6b3b0ba1129bdbdb77ac3c5b1b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/usr/bin/env node
const {exec} = require('child_process');
const {readdirSync} = require('fs');
exec(
`git clean -Xf ${readdirSync(process.cwd())
.filter(file => {
return file !== 'node_modules';
})
.join(' ')}`
);
|