MCPcopy Index your code
hub / github.com/QwikDev/qwik / readPackageJson

Function readPackageJson

scripts/package-json.ts:5–9  ·  view source on GitHub ↗
(pkgJsonDir: string)

Source from the content-addressed store, hash-verified

3import { join } from 'node:path';
4
5export async function readPackageJson(pkgJsonDir: string) {
6 const pkgJsonPath = join(pkgJsonDir, 'package.json');
7 const pkgJson: PackageJSON = JSON.parse(await readFile(pkgJsonPath, 'utf-8'));
8 return pkgJson;
9}
10
11export async function writePackageJson(pkgJsonDir: string, pkgJson: PackageJSON) {
12 ensureDir(pkgJsonDir);

Callers 11

publishEslintFunction · 0.90
mainFunction · 0.90
getQwikVersionFunction · 0.90
getQwikDomVersionFunction · 0.90
updateBaseVersionsFunction · 0.90
updatePackageJsonFunction · 0.90
getVersionFunction · 0.90
prepareReleaseVersionFunction · 0.90
publishFunction · 0.90

Calls 3

readFileFunction · 0.90
joinFunction · 0.85
parseMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…