MCPcopy
hub / github.com/formatjs/formatjs / rootDependencyVersion

Function rootDependencyVersion

tools/generate-package-json.ts:72–83  ·  view source on GitHub ↗
(
  packageName: string,
  versions: Map<string, string>
)

Source from the content-addressed store, hash-verified

70}
71
72function rootDependencyVersion(
73 packageName: string,
74 versions: Map<string, string>
75): string {
76 const version = versions.get(packageName)
77 if (!version) {
78 throw new Error(
79 `No version found for ${packageName}; add it to the root package.json`
80 )
81 }
82 return version
83}
84
85function dependencyVersion(
86 packageName: string,

Callers 1

dependencyVersionFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected