UNPKG

@softwareventures/maintain-project

Version:

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

14 lines 625 B
import { mapNullableFn } from "@softwareventures/nullable"; import { toNullable } from "../result/result.js"; import { insert } from "../fs-stage/fs-stage.js"; import { modifyPackageJson } from "./modify-package-json.js"; export async function applyCodeStyleToPackageJson(project) { return modifyPackageJson(project, packageJson => packageJson) .then(toNullable) .then(mapNullableFn(file => ({ type: "fs-stage-update", log: "style(package.json): apply code style", apply: async (stage) => insert(stage, "package.json", file) }))); } //# sourceMappingURL=apply-code-style.js.map