pantry/scripts/repair.ts

24 lines
444 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-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"
import { print } from "utils"
print("this because otherwise console.verbose is not defined lol")
for (const project of Deno.args) {
await repairLinks(project)
}