UNPKG

673 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3const renderer_1 = require("./renderer");
4// --------- /Public Types --------- //
5// --------- Public Loaders --------- //
6async function loadVersionFiles() {
7 const rawConfig = await loadVdevConfig();
8 return rawConfig.versionFiles || [];
9}
10exports.loadVersionFiles = loadVersionFiles;
11/** Parse the ./vdev.yaml and return as is */
12async function loadVdevConfig() {
13 const conf = await renderer_1.loadTemplatizedYaml('./vdev.yaml');
14 // TODO: probably need to do some checks here.
15 return conf;
16}
17exports.loadVdevConfig = loadVdevConfig;
18// --------- /Public Loaders --------- //