pantry/scripts/repair.ts

25 lines
466 B
TypeScript
Raw Normal View History

2022-09-07 03:33:51 +03:00
#!/usr/bin/env -S tea -E
/*
---
args:
- deno
- run
- --allow-net
2022-09-12 14:48:12 +03:00
- --allow-env=TEA_PREFIX,VERBOSE,DEBUG,MAGIC,GITHUB_ACTIONS,JSON
2022-09-08 23:40:35 +03:00
- --allow-read={{ tea.prefix }}
- --allow-write={{ tea.prefix }}
2022-09-07 03:33:51 +03:00
- --allow-run # uses `/bin/ln`
- --import-map={{ srcroot }}/import-map.json
---
*/
import repairLinks from "prefab/repair-links.ts"
2022-09-12 14:48:12 +03:00
import useFlags from "hooks/useFlags.ts"
2022-09-07 03:33:51 +03:00
2022-09-12 14:48:12 +03:00
useFlags()
2022-09-07 03:33:51 +03:00
for (const project of Deno.args) {
await repairLinks(project)
}