MCPcopy
hub / github.com/QwikDev/qwik / writePackageJson

Function writePackageJson

scripts/package-json.ts:11–16  ·  view source on GitHub ↗
(pkgJsonDir: string, pkgJson: PackageJSON)

Source from the content-addressed store, hash-verified

9}
10
11export async function writePackageJson(pkgJsonDir: string, pkgJson: PackageJSON) {
12 ensureDir(pkgJsonDir);
13 const pkgJsonPath = join(pkgJsonDir, 'package.json');
14 const pkgJsonStr = JSON.stringify(pkgJson, null, 2) + '\n';
15 await writeFile(pkgJsonPath, pkgJsonStr);
16}

Callers 9

submoduleBuildFunction · 0.90
publishEslintFunction · 0.90
mainFunction · 0.90
updateBaseVersionsFunction · 0.90
updatePackageJsonFunction · 0.90
generateLoaderSubmoduleFunction · 0.90

Calls 2

ensureDirFunction · 0.90
joinFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…