core/steps/ontology.step.ts

core/steps/ontology.step.ts is a file in Bane's Lab Build Scripts. 18 lines of code and 3 definitions.

import { buildOntology } from "#core/coordinators/ontology.coordinator";
import { defineStep } from "#core/factories/step.factory";
import { ontologyLine } from "#configuration/strings/ontology.strings";
import { relativePath } from "@ssot/paths";

defineStep({
    cache: null,
    name: "ontology",
    phase: "start",
    async run() {
        const built = await buildOntology();
        const files = {
            ontology: relativePath("app.ontology"),
            reference: relativePath("app.reference"),
            vocabulary: relativePath("app.vocabulary"),
        };
        return { gives: { ontology: built.ontology }, line: ontologyLine(built, files) };
    },
});