UNPKG

@softwareventures/maintain-project

Version:

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

8 lines 409 B
import { readTemplateText } from "./read-text.js"; export async function modifyTemplateText({ templateId, pathSegments, modify }) { const text = readTemplateText(templateId, ...pathSegments); const newText = text.then(modify); const data = newText.then(newText => new TextEncoder().encode(newText)); return data.then(data => ({ type: "file", data })); } //# sourceMappingURL=modify-text.js.map