core/steps/diagram.step.ts

core/steps/diagram.step.ts is a file in Bane's Lab Build Scripts. 14 lines of code and 1 definition.

import { buildDiagrams } from "#core/coordinators/diagram.coordinator";
import { defineStep } from "#core/factories/step.factory";
import { diagramsLine } from "#configuration/strings/diagram.strings";
import { relativePath } from "@ssot/paths";

defineStep({
    cache: null,
    modes: ["build"],
    name: "diagrams",
    needs: ["metrics"],
    phase: "start",
    async run(state) {
        return { gives: {}, line: diagramsLine(await buildDiagrams(state.diagrams), relativePath("app.diagrams")) };
    },
});