(version: string, appRootPath: string)
| 1 | import { resolve } from "./path" |
| 2 | |
| 3 | function transformVersionString(version: string, appRootPath: string) { |
| 4 | if (version.startsWith("file:") && version[5] !== "/") { |
| 5 | return "file:" + resolve(appRootPath, version.slice(5)) |
| 6 | } else { |
| 7 | return version |
| 8 | } |
| 9 | } |
| 10 | |
| 11 | export function resolveRelativeFileDependencies( |
| 12 | appRootPath: string, |
no test coverage detected
searching dependent graphs…