tools/core/constants/layer.constants.ts

tools/core/constants/layer.constants.ts is a file in Coordination Surface. 7 lines of code and 4 definitions.

import { slotList, surfacePath, surfacePrefix } from "../../../config/surface.config.ts";

export const RULE_ROOT = `${surfacePath("rules")}/`;

const withinSurface = function withinSurface(folder: string): string {
    const prefix = surfacePrefix();
    return prefix.length === 0 ? `${folder}/` : `${prefix}/${folder}/`;
};

export const LEAF_FOLDERS: readonly string[] = slotList("surface", "leaves").map(withinSurface);