mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
19 lines
319 B
JavaScript
Executable File
19 lines
319 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
|
|
/**
|
|
* @license
|
|
* Copyright 2022 Google Inc.
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {exec} from 'child_process';
|
|
import {readdirSync} from 'fs';
|
|
|
|
exec(
|
|
`git clean -Xf ${readdirSync(process.cwd())
|
|
.filter(file => {
|
|
return file !== 'node_modules';
|
|
})
|
|
.join(' ')}`
|
|
);
|