mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-09 06:38:04 -05:00
34 lines
707 B
TypeScript
Executable File
34 lines
707 B
TypeScript
Executable File
#!/usr/bin/env ts-node
|
|
import { readdirSync, rmSync } from "fs"
|
|
|
|
const folderName = "apps"
|
|
|
|
const gitIgnored = [
|
|
"node_modules",
|
|
"build",
|
|
".next",
|
|
"generated",
|
|
"out",
|
|
"subgraph.yaml",
|
|
"tests/.bin",
|
|
".docusaurus",
|
|
".cache-loader"
|
|
]
|
|
|
|
async function main() {
|
|
const folders = readdirSync(folderName, { withFileTypes: true })
|
|
.filter((file) => file.isDirectory())
|
|
.map((dir) => dir.name)
|
|
|
|
folders.forEach((app) =>
|
|
gitIgnored.forEach((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))
|
|
)
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error)
|
|
process.exit(1)
|
|
})
|