MCPcopy Create free account
hub / github.com/getsentry/sentry-javascript / readJson

Function readJson

scripts/bump-version.js:4–6  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

2const path = require('path');
3
4function readJson(filePath) {
5 return JSON.parse(fs.readFileSync(filePath, 'utf-8'));
6}
7
8function updateWorkspaceDeps(pkgPath, workspaceNames, newVersion, { bumpVersion } = {}) {
9 const pkg = JSON.parse(fs.readFileSync(pkgPath, 'utf-8'));

Callers 1

bumpVersionsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected