MCPcopy Create free account
hub / github.com/anus-dev/ANUS / getPackageVersion

Function getPackageVersion

scripts/get-release-version.js:12–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10import path from 'path';
11
12function getPackageVersion() {
13 const packageJsonPath = path.resolve(process.cwd(), 'package.json');
14 const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
15 return packageJson.version;
16}
17
18function getShortSha() {
19 return execSync('git rev-parse --short HEAD').toString().trim();

Callers 1

getNightlyTagNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected