({
artifactsDir,
onChange,
filePath,
shouldWatchFile,
})
| 75 | // proxyFileChanges types and implementation. |
| 76 | |
| 77 | export function proxyFileChanges({ |
| 78 | artifactsDir, |
| 79 | onChange, |
| 80 | filePath, |
| 81 | shouldWatchFile, |
| 82 | }) { |
| 83 | if (filePath.indexOf(artifactsDir) === 0 || !shouldWatchFile(filePath)) { |
| 84 | log.debug(`Ignoring change to: ${filePath}`); |
| 85 | } else { |
| 86 | log.debug(`Changed: ${filePath}`); |
| 87 | log.debug(`Last change detection: ${new Date().toTimeString()}`); |
| 88 | onChange(); |
| 89 | } |
| 90 | } |
no test coverage detected
searching dependent graphs…