MCPcopy Index your code
hub / github.com/ds300/patch-package / transformVersionString

Function transformVersionString

src/resolveRelativeFileDependencies.ts:3–9  ·  view source on GitHub ↗
(version: string, appRootPath: string)

Source from the content-addressed store, hash-verified

1import { resolve } from "./path"
2
3function 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
11export function resolveRelativeFileDependencies(
12 appRootPath: string,

Callers 1

Calls 1

resolveFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…