(root: string, name: string)
| 1241 | } |
| 1242 | |
| 1243 | export function prepareHasRunFile(root: string, name: string) { |
| 1244 | const hasRunFile = path.join(root, `scripts/has_run/${name}`); |
| 1245 | deleteFileIfExists(hasRunFile); |
| 1246 | return hasRunFile; |
| 1247 | } |
| 1248 | |
| 1249 | export function ensureHasRunRecently(root: string, name: string, allowedModificationSeconds = 60) { |
| 1250 | const hasRunFile = path.isAbsolute(name) |
no test coverage detected