MCPcopy Create free account
hub / github.com/electric-sql/electric / getPackageVersion

Function getPackageVersion

scripts/patch_api_spec_version.js:12–21  ·  view source on GitHub ↗
(packageName)

Source from the content-addressed store, hash-verified

10}
11
12function getPackageVersion(packageName) {
13 const packagePath = path.join(
14 REPO_ROOT,
15 `packages`,
16 packageName,
17 `package.json`
18 )
19
20 return JSON.parse(fs.readFileSync(packagePath, `utf8`)).version
21}
22
23function replaceVersionPlaceholders(content) {
24 let updatedContent = content

Callers 1

Calls 2

parseMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected