mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
13 lines
239 B
JavaScript
Executable File
13 lines
239 B
JavaScript
Executable File
#!/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(' ')}`
|
|
);
|