mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-04-28 03:00:41 -04:00
* chore: define separate version.ts script * chore: include publishing to soldeer in script * fix(contracts): push to soldeer re 800 * ci: fetch latest contract version from soldeer * refactor: do not use execa in scripts * fix: do not exit process in script * chore: remove comments * refactor: use shebang in ts scripts * chore(contracts): add soldeerignore * chore: inherit stdio in scripts * chore: remove dry run flag * chore: uncomment * chore: fix typo in comment
32 lines
691 B
TypeScript
Executable File
32 lines
691 B
TypeScript
Executable File
#!node_modules/.bin/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.map((app) => gitIgnored.map((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true })))
|
|
}
|
|
|
|
main()
|
|
.then(() => process.exit(0))
|
|
.catch((error) => {
|
|
console.error(error)
|
|
process.exit(1)
|
|
})
|