MCPcopy
hub / github.com/apify/crawlee / getRootVersion

Function getRootVersion

scripts/copy.ts:29–43  ·  view source on GitHub ↗
(bump = true)

Source from the content-addressed store, hash-verified

27let rootVersion: string;
28
29function getRootVersion(bump = true): string {
30 if (rootVersion) {
31 return rootVersion;
32 }
33
34 rootVersion = require(resolve(root, './lerna.json')).version.replace(/^(\d+\.\d+\.\d+)-?.*$/, '$1');
35
36 if (bump) {
37 const parts = rootVersion.split('.');
38 parts[2] = `${+parts[2] + 1}`;
39 rootVersion = parts.join('.');
40 }
41
42 return rootVersion;
43}
44
45/**
46 * Checks next dev version number based on the `crawlee` meta package via `npm show`.

Callers 2

getNextVersionFunction · 0.85
copy.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…