MCPcopy Index your code
hub / github.com/ReactTraining/react-broadcast / getPackageVersion

Function getPackageVersion

scripts/release.js:9–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7 execSync(command, { stdio: 'inherit' })
8
9const getPackageVersion = () =>
10 JSON.parse(readFileSync(resolvePath(__dirname, '../package.json'))).version
11
12if (process.cwd() !== resolvePath(__dirname, '..')) {
13 console.error('The release script must be run from the repo root')

Callers 1

release.jsFile · 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…