(p: string)
| 149 | */ |
| 150 | function resolveExtendsTarget(spec: string, fromDir: string): string | null { |
| 151 | const isFile = (p: string): boolean => { |
| 152 | try { |
| 153 | return fs.statSync(p).isFile(); |
| 154 | } catch { |
| 155 | return false; |
| 156 | } |
| 157 | }; |
| 158 | |
| 159 | if (spec.startsWith('./') || spec.startsWith('../') || path.isAbsolute(spec)) { |
| 160 | const base = path.resolve(fromDir, spec); |
no outgoing calls
no test coverage detected