UNPKG

@softwareventures/maintain-project

Version:

Automatically create and maintain TypeScript projects with standard settings for Software Ventures Limited

9 lines 420 B
import { mapResultFn } from "../result/result.js"; import { textFile } from "../fs-stage/file.js"; import { readProjectYamlAsDocument } from "./read-yaml.js"; export async function modifyProjectYaml(project, path, modify) { return readProjectYamlAsDocument(project, path) .then(mapResultFn(modify)) .then(mapResultFn(document => textFile(String(document)))); } //# sourceMappingURL=modify-yaml.js.map