mirror of
https://github.com/semaphore-protocol/semaphore.git
synced 2026-01-06 21:34:00 -05:00
fix(scripts): replaced map with foreach func (#1061)
fix: fix(scripts): replaced map with foreach func re #1056
This commit is contained in:
@@ -20,7 +20,9 @@ async function main() {
|
||||
.filter((file) => file.isDirectory())
|
||||
.map((dir) => dir.name)
|
||||
|
||||
folders.map((app) => gitIgnored.map((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true })))
|
||||
folders.forEach((app) =>
|
||||
gitIgnored.forEach((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))
|
||||
)
|
||||
}
|
||||
|
||||
main()
|
||||
|
||||
@@ -14,8 +14,8 @@ const gitIgnored = [
|
||||
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 }))
|
||||
folders.forEach((pkg) =>
|
||||
gitIgnored.forEach((f) => rmSync(`${folderName}/${pkg}/apps/${f}`, { recursive: true, force: true }))
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ async function main() {
|
||||
.filter((file) => file.isDirectory())
|
||||
.map((dir) => dir.name)
|
||||
|
||||
folders.map((app) => gitIgnored.map((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true })))
|
||||
folders.forEach((app) =>
|
||||
gitIgnored.forEach((f) => rmSync(`${folderName}/${app}/${f}`, { recursive: true, force: true }))
|
||||
)
|
||||
|
||||
rmSync(`${folderName}/circuit/main`, { recursive: true, force: true })
|
||||
rmSync(`${folderName}/circuit/test`, { recursive: true, force: true })
|
||||
|
||||
Reference in New Issue
Block a user