MCPcopy
hub / github.com/conventional-changelog/commitlint / writePkg

Function writePkg

@commitlint/cli/src/cli.test.ts:773–778  ·  view source on GitHub ↗
(payload: unknown, options: TestOptions)

Source from the content-addressed store, hash-verified

771});
772
773async function writePkg(payload: unknown, options: TestOptions) {
774 const pkgPath = path.join(options.cwd, "package.json");
775 const pkg = JSON.parse(await fs.readFile(pkgPath, "utf-8"));
776 const result = merge(pkg, payload);
777 await fs.writeFile(pkgPath, JSON.stringify(result, null, " "));
778}

Callers 1

cli.test.tsFile · 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…