Files
semaphore/scripts/clean-cli-templates.ts
sripwoud 0d41562dad chore: publish contracts to soldeer (#820)
* 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
2024-08-28 16:26:48 +02:00

28 lines
612 B
TypeScript
Executable File

#!node_modules/.bin/ts-node
import { rmSync } from "fs"
const folderName = "packages"
const gitIgnored = [
"contracts/artifacts",
"contracts/cache",
"contracts/node_modules",
"web-app/node_modules",
"web-app/.next"
]
const folders = ["cli-template-monorepo-ethers", "cli-template-monorepo-subgraph"]
async function main() {
folders.map((pkg) =>
gitIgnored.map((f) => rmSync(`${folderName}/${pkg}/apps/${f}`, { recursive: true, force: true }))
)
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
})