(filepath: string, operation: string)
| 130 | } |
| 131 | |
| 132 | export function assertNotTouchingFiles(filepath: string, operation: string): void { |
| 133 | if (!filepath.startsWith(configDir) && !filepath.startsWith(getLegacyConfigDir())) { |
| 134 | throw new Error(`Devcert cannot ${ operation } ${ filepath }; it is outside known devcert config directories!`); |
| 135 | } |
| 136 | } |
no test coverage detected
searching dependent graphs…