blob: aa4ba516b1556324ddbdca3fa9b5e45c23a36e33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/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(' ')}`
);
|